Merge pull request #220 from matplotlib/pre-commit-ci-update-config #196
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*' | |
- '!*dev*' | |
- '!*pre*' | |
- '!*post*' | |
pull_request: | |
# Allow manual runs through the web UI | |
workflow_dispatch: | |
jobs: | |
test: | |
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1 | |
with: | |
libraries: | | |
apt: | |
- ghostscript | |
- inkscape | |
envs: | | |
# Test oldest NEP 29 configurations | |
- linux: py39-test-mpl33 | |
- macos: py39-test-mpl33 | |
- windows: py39-test-mpl33 | |
# Test oldest non-NEP 29 configurations | |
- linux: py36-test-mpl20 | |
runs-on: ubuntu-20.04 | |
- macos: py36-test-mpl20 | |
- windows: py36-test-mpl20 | |
# Test newest configurations | |
- linux: py312-test-mpl38 | |
- macos: py312-test-mpl38 | |
- windows: py312-test-mpl38 | |
# Test intermediate NEP 29 configurations on Linux | |
- linux: py39-test-mpl38 | |
- linux: py310-test-mpl38 | |
- linux: py310-test-mpl35 | |
- linux: py311-test-mpl36 | |
- linux: py311-test-mpl37 | |
# Test different versions of pytest | |
# Skip pytestdev until hook wrapper issue is fixed | |
# - linux: py312-test-mpldev-pytestdev | |
- linux: py39-test-mpl33-pytest62 | |
- linux: py38-test-mpl31-pytest54 | |
coverage: 'codecov' | |
publish: | |
if: github.event_name != 'pull_request' | |
needs: [test] | |
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1 | |
with: | |
test_command: pytest $GITHUB_WORKSPACE/tests; pytest --mpl $GITHUB_WORKSPACE/tests | |
# Remove python-version when python-dateutil >2.8.2 | |
python-version: "3.11" | |
secrets: | |
pypi_token: ${{ secrets.pypi_password }} |