Skip to content

Commit

Permalink
Update GH Actions test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie committed Apr 25, 2022
1 parent 89e7ac5 commit 2f673a2
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 2 # required by codecov
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}

Expand All @@ -43,18 +41,28 @@ jobs:
pip install .[all]
fi
- name: Style test
run: flake8

- name: mypy
run: mypy --explicit-package-bases
- name: Type checking
run: mypy

- name: Test
run: pytest --cov

- name: Coverage
if: ${{ success() && matrix.python == env.PYTHON_COVERAGE_ENABLED }}
- name: Coverage report
if: ${{ success() && matrix.python == env.PYTHON_COVERAGE_ENABLED }}
run: |
coverage xml --ignore-errors
bash <(curl -s https://codecov.io/bash)
coverage report
- name: Codecov upload
if: ${{ success() && matrix.python == env.PYTHON_COVERAGE_ENABLED }}
uses: codecov/codecov-action@v3
with:
name: '${{ matrix.os }} py-${{ matrix.python }}'
fail_ci_if_error: true

- name: Debug - pip list
if: always()
run: pip list

0 comments on commit 2f673a2

Please sign in to comment.