-
Notifications
You must be signed in to change notification settings - Fork 6
111 lines (76 loc) · 3.16 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: automated tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["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: tests install
run: pytest --quiet tests/test_installation.py
- name: test utils array_ops
run: pytest --quiet tests/utils/test_array_ops.py
- name: test utils coordinates
run: pytest --quiet tests/utils/test_coordinates.py
- name: test utils geometry
run: pytest --quiet tests/utils/test_geometry.py
- name: test utils helpers
run: pytest --quiet tests/utils/test_helpers.py
- name: test utils interpolation
run: pytest --quiet tests/utils/test_interpolation.py
- name: test utils math
run: pytest --quiet tests/utils/test_math.py
- name: test utils optics
run: pytest --quiet tests/utils/test_optics.py
- name: test utils propagation
run: pytest --quiet tests/utils/test_propagation.py
- name: test utils source
run: pytest --quiet tests/utils/test_source.py
- name: test utils units
run: pytest --quiet tests/utils/test_units.py
- name: test utils zernike
run: pytest --quiet tests/utils/test_zernike.py
- name: test layers aberrations
run: pytest --quiet tests/layers/test_aberrations.py
- name: test layers apertures
run: pytest --quiet tests/layers/test_apertures.py
- name: test layers detector_layers
run: pytest --quiet tests/layers/test_detector_layers.py
- name: test layers optical_layers
run: pytest --quiet tests/layers/test_optical_layers.py
- name: test layers optics
run: pytest --quiet tests/layers/test_optics.py
- name: test layers propagators
run: pytest --quiet tests/layers/test_propagators.py
- name: test layers unified_layers
run: pytest --quiet tests/layers/test_unified_layers.py
- name: test transformations
run: pytest --quiet tests/test_transformations.py
- name: test detectors
run: pytest --quiet tests/test_detectors.py
- name: test instruments
run: pytest --quiet tests/test_instruments.py
- name: test optical_systems
run: pytest --quiet tests/test_optical_systems.py
- name: test psfs
run: pytest --quiet tests/test_psfs.py
- name: test sources
run: pytest --quiet tests/test_sources.py
- name: test spectra
run: pytest --quiet tests/test_spectra.py
- name: test wavefronts
run: pytest --quiet tests/test_wavefronts.py