🧪 Fix and Update Test System to be Compatible with CI #1231
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Simvue Client (Ubuntu) | |
on: | |
push: | |
branches: ["main", "dev", "hotfix/update-ci"] | |
pull_request: | |
branches: [ "main", "dev", "hotfix/update-ci" ] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
online_unit_tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 40 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.13 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
- name: Install dependencies | |
run: | | |
python -m pip install poetry | |
poetry self add poetry-plugin-export | |
poetry export -f requirements.txt --with dev -o requirements.txt --all-extras | |
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu | |
python -m pip install -r requirements.txt | |
python -m pip install . | |
- name: Test with pytest | |
env: | |
SIMVUE_URL: ${{ secrets.SIMVUE_URL }} | |
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }} | |
run: >- | |
python -m pytest tests/unit/ -x | |
-m online -c /dev/null -p no:warnings | |
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache | |
offline_unit_tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 40 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.13 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
- name: Install dependencies | |
run: | | |
python -m pip install poetry | |
poetry self add poetry-plugin-export | |
poetry export -f requirements.txt --with dev -o requirements.txt --all-extras | |
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu | |
python -m pip install -r requirements.txt | |
python -m pip install . | |
- name: Test with pytest | |
env: | |
SIMVUE_URL: ${{ secrets.SIMVUE_URL }} | |
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }} | |
run: >- | |
python -m pytest tests/unit/ -x | |
-m offline -c /dev/null -p no:warnings | |
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache | |
online_functional_tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 40 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.13 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
- name: Install dependencies | |
run: | | |
python -m pip install poetry | |
poetry self add poetry-plugin-export | |
poetry export -f requirements.txt --with dev -o requirements.txt --all-extras | |
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu | |
python -m pip install -r requirements.txt | |
python -m pip install . | |
- name: Test with pytest | |
env: | |
SIMVUE_URL: ${{ secrets.SIMVUE_URL }} | |
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }} | |
run: >- | |
python -m pytest tests/functional/ -x | |
-m online -m "not eco" -c /dev/null -p no:warnings | |
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache | |
offline_functional_tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 40 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.13 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
- name: Install dependencies | |
run: | | |
python -m pip install poetry | |
poetry self add poetry-plugin-export | |
poetry export -f requirements.txt --with dev -o requirements.txt --all-extras | |
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu | |
python -m pip install -r requirements.txt | |
python -m pip install . | |
- name: Test with pytest | |
env: | |
SIMVUE_URL: ${{ secrets.SIMVUE_URL }} | |
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }} | |
run: >- | |
python -m pytest tests/functional/ -x | |
-m offline -c /dev/null -p no:warnings | |
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache | |
other_unit_tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 40 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.13 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
- name: Install dependencies | |
run: | | |
python -m pip install poetry | |
poetry self add poetry-plugin-export | |
poetry export -f requirements.txt --with dev -o requirements.txt --all-extras | |
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu | |
python -m pip install -r requirements.txt | |
python -m pip install . | |
- name: Test with pytest | |
env: | |
SIMVUE_URL: ${{ secrets.SIMVUE_URL }} | |
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }} | |
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 -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache | |
other_functional_tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 40 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.13 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
- name: Install dependencies | |
run: | | |
python -m pip install poetry | |
poetry self add poetry-plugin-export | |
poetry export -f requirements.txt --with dev -o requirements.txt --all-extras | |
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu | |
python -m pip install -r requirements.txt | |
python -m pip install . | |
- name: Test with pytest | |
env: | |
SIMVUE_URL: ${{ secrets.SIMVUE_URL }} | |
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }} | |
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 -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache |