Skip to content

Update release.yml #169

Update release.yml

Update release.yml #169

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 the oldest and newest configuration on Mac and Windows
- macos: py36-test-mpl20
- macos: py310-test-mpl36
- windows: py36-test-mpl20
- windows: py310-test-mpl36
# Test all configurations on Linux
- linux: py36-test-mpl20
runs-on: ubuntu-20.04
- linux: py36-test-mpl21
runs-on: ubuntu-20.04
- linux: py36-test-mpl22
runs-on: ubuntu-20.04
- linux: py37-test-mpl30
- linux: py37-test-mpl31
- linux: py37-test-mpl32
- linux: py38-test-mpl33
- linux: py39-test-mpl34
- linux: py310-test-mpl35
- linux: py310-test-mpl36
# Test different versions of pytest
- linux: py310-test-mpl36-pytestdev
- linux: py310-test-mpl36-pytest62
- linux: py38-test-mpl36-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 }}