File tree Expand file tree Collapse file tree 5 files changed +51
-33
lines changed
Expand file tree Collapse file tree 5 files changed +51
-33
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,13 @@ jobs:
2626 run : |
2727 rm poetry.lock
2828 python -m pip install poetry
29+ poetry self add poetry-plugin-export
30+ poetry export -f requirements.txt --with dev requirements.txt --all-extras
31+ python -m pip install torch
32+ python -m pip install -r requirements.txt
33+ python -m pip install .
2934 - name : Test with pytest
30- run : |
31- export SIMVUE_URL=${{ secrets.SIMVUE_NIGHTLY_URL }}
32- export SIMVUE_TOKEN=${{ secrets.SIMVUE_NIGHTLY_TOKEN }}
33- poetry install --all-extras
34- # poetry run python -m pip install torch #FIXME: Torch tests skipped
35- poetry run pytest tests/ -m 'not scenario'
35+ env :
36+ SIMVUE_URL : ${{ secrets.SIMVUE_NIGHTLY_URL }}
37+ SIMVUE_TOKEN : ${{ secrets.SIMVUE_NIGHTLY_TOKEN }}
38+ run : python -m pytest tests/ -m 'not scenario'
Original file line number Diff line number Diff line change @@ -29,14 +29,18 @@ jobs:
2929 with :
3030 python-version : " 3.13"
3131 - name : Install dependencies
32- run : python -m pip install poetry
33- - name : Test with pytest
3432 run : |
35- export SIMVUE_URL=${{ secrets.SIMVUE_URL }}
36- export SIMVUE_TOKEN=${{ secrets.SIMVUE_TOKEN }}
37- poetry install --all-extras
38- # poetry run python -m pip install torch --index-url https://download.pytorch.org/whl/cpu FIXME: PyTorch current broken for Python3.13
39- poetry run pytest tests/ -x --cov --cov-report=xml -m 'not scenario' -c /dev/null -p no:warnings -n 0 -v
33+ python -m pip install poetry
34+ poetry self add poetry-plugin-export
35+ poetry export -f requirements.txt --with dev -o requirements.txt --all-extras
36+ python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
37+ python -m pip install -r requirements.txt
38+ python -m pip install .
39+ - name : Test with pytest
40+ env :
41+ SIMVUE_URL : ${{ secrets.SIMVUE_URL }}
42+ 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
4044 - name : Upload coverage reports to Codecov
4145 run : |
4246 curl -Os https://uploader.codecov.io/latest/linux/codecov
Original file line number Diff line number Diff line change @@ -27,11 +27,15 @@ jobs:
2727 with :
2828 python-version : " 3.13"
2929 - name : Install dependencies
30- run : python -m pip install poetry
31- - name : Test with pytest
3230 run : |
33- export SIMVUE_URL=${{ secrets.SIMVUE_NIGHTLY_URL }}
34- export SIMVUE_TOKEN=${{ secrets.SIMVUE_NIGHTLY_TOKEN }}
35- poetry install --all-extras
36- # poetry run python -m pip install torch --index-url https://download.pytorch.org/whl/cpu FIXME: PyTorch current broken for Python3.13
37- poetry run pytest tests/ -m 'not scenario' -c /dev/null -p no:warnings -n 0 -v
31+ python -m pip install poetry
32+ poetry self add poetry-plugin-export
33+ poetry export -f requirements.txt --with dev -o requirements.txt --all-extras
34+ python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
35+ python -m pip install -r requirements.txt
36+ python -m pip install .
37+ - name : Test with pytest
38+ env :
39+ SIMVUE_URL : ${{ secrets.SIMVUE_NIGHTLY_URL }}
40+ SIMVUE_TOKEN : ${{ secrets.SIMVUE_NIGHTLY_TOKEN }}
41+ run : python -m pytest tests/ -m 'not scenario'
Original file line number Diff line number Diff line change @@ -29,11 +29,13 @@ jobs:
2929 run : |
3030 rm poetry.lock
3131 python -m pip install poetry
32+ poetry self add poetry-plugin-export
33+ poetry export -f requirements.txt --with dev -o requirements.txt --all-extras
34+ python -m pip install torch
35+ python -m pip install -r requirements.txt
36+ python -m pip install .
3237 - name : Test with pytest
33- shell : bash
34- run : |
35- export SIMVUE_URL=${{ secrets.SIMVUE_NIGHTLY_URL }}
36- export SIMVUE_TOKEN=${{ secrets.SIMVUE_NIGHTLY_TOKEN }}
37- poetry install --all-extras
38- # poetry run python -m pip install torch #FIXME: Torch tests skipped
39- poetry run pytest tests/ -m 'not scenario' -m 'not unix'
38+ env :
39+ SIMVUE_URL : ${{ secrets.SIMVUE_NIGHTLY_URL }}
40+ SIMVUE_TOKEN : ${{ secrets.SIMVUE_NIGHTLY_TOKEN }}
41+ run : python -m pytest tests/ -m 'not scenario' -m 'not unix'
Original file line number Diff line number Diff line change @@ -29,10 +29,15 @@ jobs:
2929 with :
3030 python-version : " ${{ matrix.python-version }}"
3131 - name : Install dependencies
32- run : python -m pip install poetry
33- - name : Test with pytest
3432 run : |
35- export SIMVUE_URL=${{ secrets.SIMVUE_NIGHTLY_URL }}
36- export SIMVUE_TOKEN=${{ secrets.SIMVUE_NIGHTLY_TOKEN }}
37- poetry install --all-extras
38- poetry run pytest tests/ -m 'not scenario'
33+ python -m pip install poetry
34+ poetry self add poetry-plugin-export
35+ poetry export -f requirements.txt --with dev -o requirements.txt --all-extras
36+ python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
37+ python -m pip install -r requirements.txt
38+ python -m pip install .
39+ - name : Test with pytest
40+ env :
41+ SIMVUE_URL : ${{ secrets.SIMVUE_NIGHTLY_URL }}
42+ SIMVUE_TOKEN : ${{ secrets.SIMVUE_NIGHTLY_TOKEN }}
43+ run : python -m pytest tests/ -m 'not scenario'
You can’t perform that action at this time.
0 commit comments