Fix actions #47
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 | |
| - dev | |
| 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@v3 | |
| - 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 \ | |
| libegl-mesa0 \ | |
| libgl1-mesa-dri \ | |
| libxcb-xfixes0-dev \ | |
| mesa-vulkan-drivers | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip setuptools | |
| python -m pip install ".[dev]" | |
| - name: Run nox | |
| run: | | |
| nox --no-venv -s linters | |
| - name: Test examples | |
| env: | |
| PYGFX_EXPECT_LAVAPIPE: true | |
| run: | | |
| WGPU_FORCE_OFFSCREEN=1 pytest -v tests/ | |
| 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) }} | |
| # test-build-full: | |
| # name: Run tests | |
| # runs-on: ubuntu-latest | |
| # if: ${{ !github.event.pull_request.draft }} | |
| # strategy: | |
| # fail-fast: false | |
| # matrix: | |
| # include: | |
| # - name: Test py310 | |
| # pyversion: '3.10' | |
| # - name: Test py311 | |
| # pyversion: '3.11' | |
| # - name: Test py312 | |
| # pyversion: '3.12' | |
| # steps: | |
| # - uses: actions/checkout@v3 | |
| # - name: Set up Python | |
| # uses: actions/setup-python@v4 | |
| # with: | |
| # python-version: ${{ matrix.pyversion }} | |
| # - 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-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers | |
| # - name: Install dev dependencies | |
| # run: | | |
| # python -m pip install --upgrade pip setuptools | |
| # pip install -e ".[tests]" | |
| # - name: Test examples | |
| # env: | |
| # PYGFX_EXPECT_LAVAPIPE: true | |
| # run: | | |
| # WGPU_FORCE_OFFSCREEN=1 pytest -v tests/ |