Skip to content

Commit

Permalink
Run mpl and codecov tests on python 3.11 (#786)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuppmann authored Oct 12, 2023
1 parent 46d23a8 commit 46720cf
Show file tree
Hide file tree
Showing 3 changed files 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
Binary file modified tests/expected_figs/test_boxplot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/expected_figs/test_boxplot_hue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 46720cf

Please sign in to comment.