|
9 | 9 |
|
10 | 10 | jobs:
|
11 | 11 | tests:
|
12 |
| - runs-on: ${{ matrix.os }} |
13 |
| - strategy: |
14 |
| - fail-fast: false |
15 |
| - matrix: |
16 |
| - include: |
17 |
| - - os: ubuntu-latest |
18 |
| - python-version: 3.7 |
19 |
| - toxenv: py37-test-pytest46 |
20 |
| - - os: windows-latest |
21 |
| - python-version: 3.7 |
22 |
| - toxenv: py37-test-pytest50 |
23 |
| - - os: macos-latest |
24 |
| - python-version: 3.8 |
25 |
| - toxenv: py38-test-pytest52 |
26 |
| - - os: ubuntu-latest |
27 |
| - python-version: 3.8 |
28 |
| - toxenv: py38-test-pytest53 |
29 |
| - - os: windows-latest |
30 |
| - python-version: 3.9 |
31 |
| - toxenv: py39-test-pytest60 |
32 |
| - - os: macos-latest |
33 |
| - python-version: 3.9 |
34 |
| - toxenv: py39-test-pytest61 |
35 |
| - - os: ubuntu-latest |
36 |
| - python-version: '3.10' |
37 |
| - toxenv: py310-test-pytest62 |
38 |
| - - os: ubuntu-latest |
39 |
| - python-version: '3.10' |
40 |
| - toxenv: py310-test-pytestdev |
41 |
| - |
42 |
| - steps: |
43 |
| - - uses: actions/checkout@v2 |
44 |
| - with: |
45 |
| - fetch-depth: 0 |
46 |
| - - name: Set up Python ${{ matrix.python-version }} |
47 |
| - uses: actions/setup-python@v2 |
48 |
| - with: |
49 |
| - python-version: ${{ matrix.python-version }} |
50 |
| - - name: Install tox |
51 |
| - run: python -m pip install tox |
52 |
| - - name: Run tox |
53 |
| - run: tox -v -e ${{ matrix.toxenv }} |
| 12 | + uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1 |
| 13 | + with: |
| 14 | + envs: | |
| 15 | + - linux: py37-test-pytestoldest |
| 16 | + - macos: py37-test-pytest50 |
| 17 | + - windows: py38-test-pytest52 |
| 18 | + - linux: py38-test-pytest53 |
| 19 | + - macos: py39-test-pytest60 |
| 20 | + - windows: py39-test-pytest61 |
| 21 | + - linux: py39-test-pytest62 |
| 22 | + - macos: py310-test-pytest70 |
| 23 | + - windows: py310-test-pytest71 |
| 24 | + - linux: py310-test-pytest72 |
| 25 | + - macos: py310-test-pytest73 |
| 26 | + - windows: py311-test-pytest74 |
| 27 | + - linux: py312-test-pytestdev |
| 28 | + publish: |
| 29 | + needs: tests |
| 30 | + uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1 |
| 31 | + with: |
| 32 | + test_extras: test |
| 33 | + test_command: pytest $GITHUB_WORKSPACE/tests; pytest --arraydiff $GITHUB_WORKSPACE/tests |
| 34 | + secrets: |
| 35 | + pypi_token: ${{ secrets.pypi_password }} |
0 commit comments