Debian Codegraph @

.github/workflows/ci.yml

raw
1 name: CI
2
3 on:
4 push:
5 branches:
6 - main
7 tags:
8 - '*'
9 pull_request:
10 schedule:
11 # Weekly Monday 9AM build
12 - cron: '0 9 * * 1'
13
14 jobs:
15 tox:
16 name: ${{ matrix.name }}
17 runs-on: ${{ matrix.os }}
18 strategy:
19 fail-fast: false
20 matrix:
21 include:
22 - name: Python 3.13 Schema validation tests
23 python-version: '3.13'
24 os: ubuntu-latest
25 toxenv: py313
26
27 - name: Python 3.12 Schema validation tests
28 python-version: '3.12'
29 os: ubuntu-latest
30 toxenv: py312
31
32 - name: Python 3.11 Schema validation tests
33 python-version: '3.11'
34 os: ubuntu-latest
35 toxenv: py311
36
37 - name: Python 3.10 Schema validation tests
38 python-version: '3.10'
39 os: ubuntu-latest
40 toxenv: py310
41
42 - name: Python 3.9 Schema validation tests
43 python-version: 3.9
44 os: ubuntu-latest
45 toxenv: py39
46
47 - name: Twine check
48 python-version: 3.11
49 os: ubuntu-latest
50 toxenv: twine
51
52 - name: Code style checks
53 python-version: 3.11
54 os: ubuntu-latest
55 toxenv: codestyle
56
57 - name: macOS
58 python-version: 3.13
59 os: macos-latest
60 toxenv: py313
61
62 - name: Windows
63 python-version: 3.13
64 os: windows-latest
65 toxenv: py313
66
67 steps:
68 - name: Checkout code
69 uses: actions/checkout@v4
70 with:
71 fetch-depth: 0
72 - name: Set up Python ${{ matrix.python-version }}
73 uses: actions/setup-python@v5
74 with:
75 python-version: ${{ matrix.python-version }}
76 - name: Install tox
77 run: |
78 python -m pip install --upgrade pip
79 pip install tox
80 - name: Run tox
81 run: tox -e ${{ matrix.toxenv }}
82
83 gwcs-dev:
84 name: Run gwcs development tests
85 runs-on: ubuntu-latest
86 steps:
87 - name: Checkout asdf-wcs-schemas
88 uses: actions/checkout@v4
89 with:
90 fetch-depth: 0
91 path: asdf-wcs-schemas
92 - name: Checkout gwcs dev
93 uses: actions/checkout@v4
94 with:
95 fetch-depth: 0
96 repository: spacetelescope/gwcs
97 path: gwcs
98 - name: Set up Python 3.13
99 uses: actions/setup-python@v5
100 with:
101 python-version: 3.13
102 - name: Install asdf-wcs-schemas
103 run: cd asdf-wcs-schemas && pip install .
104 - name: Install gwcs
105 run: cd gwcs && pip install -e .[test]
106 - name: Pip Freeze
107 run: pip freeze
108 - name: Run gwcs development tests
109 run: cd gwcs && pytest