Skip to content

Commit ff59423

Browse files
committed
Run non offline/online tests in CI
1 parent 4099b79 commit ff59423

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/test_client_ubuntu.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,47 @@ jobs:
106106
SIMVUE_URL: ${{ secrets.SIMVUE_URL }}
107107
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
108108
run: python -m pytest tests/functional/ -x -m offline -c /dev/null -p no:warnings -n 0 -v
109+
other_unit_tests:
110+
runs-on: ubuntu-latest
111+
timeout-minutes: 40
112+
steps:
113+
- uses: actions/checkout@v4
114+
- name: Set up Python 3.13
115+
uses: actions/setup-python@v5
116+
with:
117+
python-version: "3.13"
118+
- name: Install dependencies
119+
run: |
120+
python -m pip install poetry
121+
poetry self add poetry-plugin-export
122+
poetry export -f requirements.txt --with dev -o requirements.txt --all-extras
123+
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
124+
python -m pip install -r requirements.txt
125+
python -m pip install .
126+
- name: Test with pytest
127+
env:
128+
SIMVUE_URL: ${{ secrets.SIMVUE_URL }}
129+
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
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
141+
run: |
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

Comments
 (0)