updated test yml
@@ -9,16 +9,16 @@ on:
jobs:
tests:
- name: "Run tests on py${{ matrix.python-version }}"
+ name: 'Run tests on py${{ matrix.python-version }}'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- - python-version: "3.6"
- - python-version: "3.7"
- - python-version: "3.8"
- - python-version: "3.9"
+ - python-version: '3.6'
+ - python-version: '3.7'
+ - python-version: '3.8'
+ - python-version: '3.9'
steps:
- uses: actions/checkout@v2
@@ -41,10 +41,12 @@ jobs:
python -m pip install -U pip
python -m pip install -e .
- - name: Run tests
+ - name: Run tests and generate coverage
if: steps.install.outcome == 'success'
shell: bash -l {0}
- run: python -m pytest -v tests --junitxml=junit/test-results.xml
+ run: |
+ make legacy
+ make coverage
- name: Get unique id
id: unique-id
@@ -61,8 +63,7 @@ jobs:
files: junit/test-*.xml
comment_mode: update last
- - name: Publish coverage
- if: steps.install.outcome == 'success'
- shell: bash -l {0}
- run: |
- bash <(curl -s https://codecov.io/bash)
+ - name: CodeCov
+ uses: codecov/codecov-action@v2.1.0
+ with:
+ files: ./coverage.xml
