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 e5aaa4e commit 55608f6
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 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,27 @@ jobs:
pip install .[all]
fi
- name: (Debug - pip list)
run: pip list --format=freeze

- 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

0 comments on commit 55608f6

Please sign in to comment.