-
Notifications
You must be signed in to change notification settings - Fork 7
61 lines (54 loc) · 1.66 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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: CI Tests
on:
push:
branches:
- main
tags:
- '*'
pull_request:
jobs:
tests:
name: ${{ matrix.prefix }} ${{ matrix.os }}, ${{ matrix.tox_env }}
runs-on: ${{ matrix.os }}
continue-on-error: false
strategy:
matrix:
include:
- os: ubuntu-latest
python: '3.12'
tox_env: 'py312-test-alldeps'
prefix: 'py312-test-alldeps'
- os: ubuntu-latest
python: '3.12'
tox_env: 'py312-test-astropy61'
prefix: 'py312-test-astropy61'
- os: ubuntu-latest
python: '3.12'
tox_env: 'py312-test-numpy2'
prefix: 'py312-test-numpy2'
- os: ubuntu-latest
python: '3.12'
tox_env: 'build_docs'
prefix: 'build_docs'
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Install Pandoc for build_docs
if: matrix.tox_env == 'build_docs'
run: sudo apt-get install -y pandoc
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox setuptools
python -m pip install --upgrade setuptools
- name: Test with Tox
run: |
export PY_COLORS=1
tox -e ${{ matrix.tox_env }}
env:
PY_COLORS: '1'