forked from spacetelescope/poppy
-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (62 loc) · 1.93 KB
/
ci_workflows.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
name: CI
on: [push, pull_request]
env:
PYSYN_CDBS: "https://ssb.stsci.edu/trds"
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Coverage test in Python 3
os: ubuntu-latest
python: '3.11'
toxenv: py311-syn-cov
- name: Check for Sphinx doc build errors
os: ubuntu-latest
python: '3.10'
toxenv: docbuild
- name: Check accelerated math version
os: ubuntu-latest
python: '3.10'
toxenv: py310-numexpr-mkl-cov
- name: Try Astropy development version
os: ubuntu-latest
python: '3.10'
toxenv: py310-astropydev-test
- name: Try latest versions of all dependencies
os: ubuntu-latest
python: '3.11'
toxenv: py311-latest-test
- name: Try minimum supported versions
os: ubuntu-latest
python: '3.10'
toxenv: py310-legacy-test
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install Python dependencies
run: pip install tox tox-conda>=0.2
- name: Check conda info
run: conda info
- name: Run tests with requirements file
if: ${{ contains(matrix.toxenv,'-latest') }}
run: |
cp $RUNNER_WORKSPACE/poppy/requirements.txt /tmp/
tox -e ${{ matrix.toxenv }}
- name: Run tests
if: ${{ contains(matrix.toxenv,'-latest') != true }}
run: tox -e ${{ matrix.toxenv }}
- name: Upload coverage to codecov
if: ${{ contains(matrix.toxenv,'-cov') }}
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml