Attempt to get CI working again #226
Workflow file for this run
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: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1 | |
with: | |
libraries: | | |
apt: | |
- ghostscript | |
- inkscape | |
envs: | | |
# Test oldest NEP 29 configurations | |
- linux: py311-test-mpl37 | |
- macos: py311-test-mpl37 | |
- windows: py311-test-mpl37 | |
# Test newest configurations | |
# | |
# TODO: mpl310 gives different hashes on different operating systems | |
# when that's fixed, these should be bumped to mpl310 | |
# | |
- linux: py313-test-mpl39 | |
- macos: py313-test-mpl39 | |
- windows: py313-test-mpl39 | |
# Test intermediate NEP 29 configurations on Linux | |
- linux: py39-test-mpl38 | |
- linux: py310-test-mpl37 | |
- linux: py310-test-mpl38 | |
- linux: py311-test-mpl37 | |
- linux: py311-test-mpl39 | |
- linux: py312-test-mpl39 | |
# Test different versions of pytest | |
- linux: py312-test-mpldev-pytestdev | |
- linux: py39-test-mpl39-pytest62 | |
- linux: py39-test-mpl37-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 | |
secrets: | |
pypi_token: ${{ secrets.pypi_password }} |