-
-
Notifications
You must be signed in to change notification settings - Fork 12
57 lines (47 loc) · 1.45 KB
/
main.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:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@924441154cf3053034c6513d5e06c69d262fb9a6 # v1.13.0
with:
posargs: --openmp-expected=True
coverage: codecov
envs: |
# Code style
- linux: style
# Standard tests
- linux: py38-test-oldestdeps
- linux: py39-test
- linux: py310-test
- linux: py311-test
- linux: py312-test
- linux: py312-test-devdeps
- macos: py312-test-devdeps
posargs: --openmp-expected=False
- windows: py38-test
runs-on: windows-2019
- windows: py312-test-devdeps
runs-on: windows-2019
# Test with more compilers, for the OpenMP helpers
- macos: py39-test-osxclang-conda
toxdeps: 'tox>=4'
coverage: ''
- linux: py39-test-linuxgcc-conda
toxdeps: 'tox>=4'
coverage: ''
# Test downstream packages
- linux: py312-downstream
publish:
needs: tests
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@924441154cf3053034c6513d5e06c69d262fb9a6 # v1.13.0
with:
test_extras: test
test_command: pytest --pyargs extension_helpers
secrets:
pypi_token: ${{ secrets.PYPI_TOKEN }}