Skip to content

Commit

Permalink
Run mpl and codecov tests on python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuppmann committed Oct 12, 2023
1 parent 46d23a8 commit 78df262
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,18 @@ jobs:
- name: Install dependencies and package
run: pip install .[tests,optional_plotting,optional_io_formats,tutorials]

# run tests without Matplotlib & CodeCode tests on earlier Python versions
- name: Test with pytest
if: ${{ matrix.python-version != '3.10' }}
if: ${{ matrix.python-version != '3.11' }}
run: pytest tests

# only execute Matplotlib tests & CodeCov on latest Python version
# run tests with Matplotlib & CodeCov on latest Python version
- name: Test with pytest including Matplotlib & Codecov
if: ${{ matrix.python-version == '3.10' }}
if: ${{ matrix.python-version == '3.11' }}
run: pytest tests --mpl --cov=./ --cov-report=xml

- name: Upload coverage report to Codecov
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' }}
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' }}
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
Expand Down

0 comments on commit 78df262

Please sign in to comment.