-
Notifications
You must be signed in to change notification settings - Fork 6
74 lines (52 loc) · 1.83 KB
/
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
name: automated tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: checkout
uses: actions/checkout@main
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: install environment
run: |
python -m pip install --upgrade pip
pip install --quiet .
pip install --quiet pytest
# ===== Tests =====
- name: install tests
run: pytest --quiet tests/test_installation.py
- name: wavefront tests
run: pytest --quiet tests/test_wavefronts.py
- name: optical layer tests
run: pytest --quiet tests/test_optical_layers.py
- name: aperture tests
run: pytest --quiet tests/test_apertures.py
- name: aperture tests
run: pytest --quiet tests/test_aberrations.py
- name: propagator tests
run: pytest --quiet tests/test_propagators.py
- name: optics tests
run: pytest --quiet tests/test_optics.py
- name: image tests
run: pytest --quiet tests/test_images.py
- name: detector layer tests
run: pytest --quiet tests/test_detector_layers.py
- name: detector tests
run: pytest --quiet tests/test_detectors.py
- name: spectra tests
run: pytest --quiet tests/test_spectra.py
- name: source tests
run: pytest --quiet tests/test_sources.py
- name: instrument tests
run: pytest --quiet tests/test_instruments.py
- name: observations tests
run: pytest --quiet tests/test_observations.py
- name: utils tests
run: pytest --quiet tests/test_utils.py