@@ -18,8 +18,95 @@ concurrency:
18
18
cancel-in-progress : true
19
19
20
20
jobs :
21
- build :
22
-
21
+ online_unit_tests :
22
+ runs-on : ubuntu-latest
23
+ timeout-minutes : 40
24
+ steps :
25
+ - uses : actions/checkout@v4
26
+ - name : Set up Python 3.13
27
+ uses : actions/setup-python@v5
28
+ with :
29
+ python-version : " 3.13"
30
+ - name : Install dependencies
31
+ run : |
32
+ python -m pip install poetry
33
+ poetry self add poetry-plugin-export
34
+ poetry export -f requirements.txt --with dev -o requirements.txt --all-extras
35
+ python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
36
+ python -m pip install -r requirements.txt
37
+ python -m pip install .
38
+ - name : Test with pytest
39
+ env :
40
+ SIMVUE_URL : ${{ secrets.SIMVUE_URL }}
41
+ SIMVUE_TOKEN : ${{ secrets.SIMVUE_TOKEN }}
42
+ run : python -m pytest tests/unit/ -x -m online -c /dev/null -p no:warnings -n 0 -v
43
+ offline_unit_tests :
44
+ runs-on : ubuntu-latest
45
+ timeout-minutes : 40
46
+ steps :
47
+ - uses : actions/checkout@v4
48
+ - name : Set up Python 3.13
49
+ uses : actions/setup-python@v5
50
+ with :
51
+ python-version : " 3.13"
52
+ - name : Install dependencies
53
+ run : |
54
+ python -m pip install poetry
55
+ poetry self add poetry-plugin-export
56
+ poetry export -f requirements.txt --with dev -o requirements.txt --all-extras
57
+ python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
58
+ python -m pip install -r requirements.txt
59
+ python -m pip install .
60
+ - name : Test with pytest
61
+ env :
62
+ SIMVUE_URL : ${{ secrets.SIMVUE_URL }}
63
+ SIMVUE_TOKEN : ${{ secrets.SIMVUE_TOKEN }}
64
+ run : python -m pytest tests/unit/ -x -m offline -c /dev/null -p no:warnings -n 0 -v
65
+ online_functional_tests :
66
+ runs-on : ubuntu-latest
67
+ timeout-minutes : 40
68
+ steps :
69
+ - uses : actions/checkout@v4
70
+ - name : Set up Python 3.13
71
+ uses : actions/setup-python@v5
72
+ with :
73
+ python-version : " 3.13"
74
+ - name : Install dependencies
75
+ run : |
76
+ python -m pip install poetry
77
+ poetry self add poetry-plugin-export
78
+ poetry export -f requirements.txt --with dev -o requirements.txt --all-extras
79
+ python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
80
+ python -m pip install -r requirements.txt
81
+ python -m pip install .
82
+ - name : Test with pytest
83
+ env :
84
+ SIMVUE_URL : ${{ secrets.SIMVUE_URL }}
85
+ SIMVUE_TOKEN : ${{ secrets.SIMVUE_TOKEN }}
86
+ run : python -m pytest tests/functional/ -x -m online -c /dev/null -p no:warnings -n 0 -v
87
+ offline_functional_tests :
88
+ runs-on : ubuntu-latest
89
+ timeout-minutes : 40
90
+ steps :
91
+ - uses : actions/checkout@v4
92
+ - name : Set up Python 3.13
93
+ uses : actions/setup-python@v5
94
+ with :
95
+ python-version : " 3.13"
96
+ - name : Install dependencies
97
+ run : |
98
+ python -m pip install poetry
99
+ poetry self add poetry-plugin-export
100
+ poetry export -f requirements.txt --with dev -o requirements.txt --all-extras
101
+ python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
102
+ python -m pip install -r requirements.txt
103
+ python -m pip install .
104
+ - name : Test with pytest
105
+ env :
106
+ SIMVUE_URL : ${{ secrets.SIMVUE_URL }}
107
+ SIMVUE_TOKEN : ${{ secrets.SIMVUE_TOKEN }}
108
+ run : python -m pytest tests/functional/ -x -m offline -c /dev/null -p no:warnings -n 0 -v
109
+ other_unit_tests :
23
110
runs-on : ubuntu-latest
24
111
timeout-minutes : 40
25
112
steps :
@@ -40,9 +127,26 @@ jobs:
40
127
env :
41
128
SIMVUE_URL : ${{ secrets.SIMVUE_URL }}
42
129
SIMVUE_TOKEN : ${{ secrets.SIMVUE_TOKEN }}
43
- run : python -m pytest tests/ -x --cov --cov-report=xml -m 'not scenario' -c /dev/null -p no:warnings -n 0 -v
44
- - name : Upload coverage reports to Codecov
130
+ run : python -m pytest tests/unit/ -x -m 'not offline' -m 'not online' -m 'not scenario' -c /dev/null -p no:warnings -n 0 -v
131
+ other_functional_tests :
132
+ runs-on : ubuntu-latest
133
+ timeout-minutes : 40
134
+ steps :
135
+ - uses : actions/checkout@v4
136
+ - name : Set up Python 3.13
137
+ uses : actions/setup-python@v5
138
+ with :
139
+ python-version : " 3.13"
140
+ - name : Install dependencies
45
141
run : |
46
- curl -Os https://uploader.codecov.io/latest/linux/codecov
47
- chmod +x codecov
48
- ./codecov -t ${CODECOV_TOKEN}
142
+ python -m pip install poetry
143
+ poetry self add poetry-plugin-export
144
+ poetry export -f requirements.txt --with dev -o requirements.txt --all-extras
145
+ python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
146
+ python -m pip install -r requirements.txt
147
+ python -m pip install .
148
+ - name : Test with pytest
149
+ env :
150
+ SIMVUE_URL : ${{ secrets.SIMVUE_URL }}
151
+ SIMVUE_TOKEN : ${{ secrets.SIMVUE_TOKEN }}
152
+ run : python -m pytest tests/functional/ -x -m 'not offline' -m 'not online' -m 'not scenario' -c /dev/null -p no:warnings -n 0 -v
0 commit comments