Skip to content

Commit

Permalink
fixup! Update CI and dependencies after 1.5 years
Browse files Browse the repository at this point in the history
  • Loading branch information
maximz committed Feb 24, 2024
1 parent dbac839 commit 3eeec85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
run: echo "$IS_PR_TARGETING_MASTER" "$MASTER_PUSH"
- name: Run tests
# use temporary directory cleaned up after every job
run: pytest --basetemp=${{ runner.temp }} --cov=./ --cov-report xml --mpl --mpl-results-path=tests/results
run: pytest --basetemp=${{ runner.temp }} --cov=./ --cov-report xml --run-snapshots --mpl --mpl-results-path=tests/results
env:
MPLBACKEND: Agg
- name: Upload pytest test result artifacts on failure
Expand Down
1 change: 1 addition & 0 deletions tests/test_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ def test_add_sample_size_to_legend(categorical_df):
return fig


# Marking as a manual snapshot test so it is skipped when not running in Docker or in Github Actions (controlled by --run-snapshots pytest flag)
@pytest.mark.snapshot_custom
def test_pdf_deterministic_output(tmp_path, snapshot):
# Can't use snapshot_image here because pytest-mpl doesn't support PDF
Expand Down

0 comments on commit 3eeec85

Please sign in to comment.