TsdFrame image #493
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
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| - dev | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| jobs: | |
| nox: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] #[ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ['3.10','3.11', '3.12'] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| lfs: false | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 # Use v4 for compatibility with pyproject.toml | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install llvmpipe and lavapipe for offscreen canvas | |
| run: | | |
| sudo apt-get update -y -qq | |
| sudo apt-get install --no-install-recommends -y \ | |
| ffmpeg \ | |
| libegl1 \ | |
| libopengl0 \ | |
| libgl1-mesa-dri \ | |
| libxcb-xfixes0-dev \ | |
| libxcb-icccm4 \ | |
| libxcb-image0 \ | |
| libxcb-keysyms1 \ | |
| libxcb-render-util0 \ | |
| libxcb-xinerama0 \ | |
| libxkbcommon-x11-0 \ | |
| libglib2.0-0 \ | |
| mesa-vulkan-drivers \ | |
| libdbus-1-3 \ | |
| libxcb-cursor0 \ | |
| libxcb-randr0 \ | |
| x11-utils \ | |
| xvfb | |
| - name: Install nox | |
| run: python -m pip install --upgrade pip nox | |
| - name: Cache nox environments | |
| uses: actions/cache@v4 | |
| with: | |
| path: .nox | |
| key: nox-v2-${{ runner.os }}-py${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }} | |
| restore-keys: | | |
| nox-v2-${{ runner.os }}-py${{ matrix.python-version }}- | |
| - name: Run linters | |
| run: nox -s linters | |
| - name: Run tests | |
| run: nox -s tests | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| check: | |
| if: always() | |
| needs: nox | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Decide whether all tests and notebooks succeeded | |
| uses: re-actors/alls-green@v1.2.2 | |
| with: | |
| jobs: ${{ toJSON(needs) }} |