Simvue Client (Python Versions) #420
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 (Python Versions) | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '30 1 * * *' | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| object_retrieval: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| name: Object Retrieval Tests | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "${{ matrix.python-version }}" | |
| - 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 || true | |
| 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 -x | |
| -m object_retrieval -c /dev/null -p no:warnings | |
| -n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache | |
| object_removal: | |
| runs-on: ubuntu-latest | |
| name: Object Removal Tests | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "${{ matrix.python-version }}" | |
| - 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 || true | |
| 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 -x | |
| -m object_removal -c /dev/null -p no:warnings | |
| -n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache | |
| dispatch_tests: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| name: Dispatch Tests | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "${{ matrix.python-version }}" | |
| - 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 -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 -x | |
| -m dispatch -c /dev/null -p no:warnings | |
| -n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache | |
| run_tests_online: | |
| name: Run Tests Online | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "${{ matrix.python-version }}" | |
| - 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 || true | |
| 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 -x | |
| -m run -m online -c /dev/null -p no:warnings | |
| -n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache | |
| run_tests_offline: | |
| runs-on: ubuntu-latest | |
| name: Run Tests Offline | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "${{ matrix.python-version }}" | |
| - 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 || true | |
| 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 -x | |
| -m run -m offline -c /dev/null -p no:warnings | |
| -n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache | |
| config_tests: | |
| runs-on: ubuntu-latest | |
| name: Config Tests | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "${{ matrix.python-version }}" | |
| - 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 -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 -x | |
| -m config -c /dev/null -p no:warnings | |
| -n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache | |
| executor_tests: | |
| runs-on: ubuntu-latest | |
| name: Executor Tests | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "${{ matrix.python-version }}" | |
| - 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 -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 -x | |
| -m executor -c /dev/null -p no:warnings | |
| -n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache | |
| api_tests: | |
| runs-on: ubuntu-latest | |
| name: API Tests | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "${{ matrix.python-version }}" | |
| - 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 -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 -x | |
| -m api -c /dev/null -p no:warnings | |
| -n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache | |
| local_tests: | |
| runs-on: ubuntu-latest | |
| name: Local Tests | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "${{ matrix.python-version }}" | |
| - 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 -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 -x | |
| -m local -c /dev/null -p no:warnings | |
| -n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache |