-
Notifications
You must be signed in to change notification settings - Fork 47
57 lines (54 loc) · 1.56 KB
/
test_and_publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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 }}