-
Notifications
You must be signed in to change notification settings - Fork 0
96 lines (96 loc) · 2.49 KB
/
ci_tests.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
name: CI Tests
on:
push:
branches:
- main
pull_request: null
env:
SETUP_XVFB: true
jobs:
ci-tests:
name: Tox env ${{ matrix.python }}-${{ matrix.toxenv }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
python:
- "3.12"
- "3.13"
toxenv:
- test-numpydev
- test-astropydev
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install base dependencies
run: |
python -m pip install --upgrade pip tox
- name: Test with tox
run: |
tox -e ${{ matrix.python }}-${{ matrix.toxenv }}
os-tests:
name: Python ${{ matrix.python }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- windows-latest
- macos-latest
- ubuntu-latest
python:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
toxenv:
- test
- test-alldeps
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install base dependencies
run: |
python -m pip install --upgrade pip tox
- name: Test with tox
run: |
tox -e ${{ matrix.python }}-${{ matrix.toxenv }}
conda:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Conda environment check
uses: actions/setup-python@v4
with:
python-version: "3.13"
- name: Install base dependencies
run: |
python -m pip install --upgrade pip tox
- name: Run obstools tests from environment built with conda
run: |
tox -e conda
codestyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Python codestyle check
uses: actions/setup-python@v4
with:
python-version: "3.13"
- name: Install base dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pycodestyle
- name: Check for runtime errors using pycodestyle
run: |
pycodestyle obstools --count --select=E9