@@ -18,8 +18,51 @@ concurrency:
1818 cancel-in-progress : true
1919
2020jobs :
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 :
2366 runs-on : ubuntu-latest
2467 timeout-minutes : 40
2568 steps :
4083 env :
4184 SIMVUE_URL : ${{ secrets.SIMVUE_URL }}
4285 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
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
4597 run : |
46- curl -Os https://uploader.codecov.io/latest/linux/codecov
47- chmod +x codecov
48- ./codecov -t ${CODECOV_TOKEN}
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+ dependencies : []
0 commit comments