Transition to nbclassic (#219) #738
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
| --- | |
| # Run basic tests for this app on aiidalab/full-stack image (specific tag(s)). | |
| name: continuous-integration | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| env: | |
| FORCE_COLOR: '1' | |
| # https://docs.github.com/en/actions/using-jobs/using-concurrency | |
| concurrency: | |
| # only cancel in-progress jobs or runs for the current workflow - matches against branch & tags | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-notebooks: | |
| strategy: | |
| matrix: | |
| browser: [Chrome, Firefox] | |
| docker-tag: ['2026.1029'] | |
| fail-fast: false | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Check out app | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.11' | |
| - name: Setup uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: 0.4.20 | |
| - name: Install package test dependencies | |
| # Notebook tests happen in the container, here we only need to install | |
| # the pytest-docker dependency. Unfortunately, uv/pip does not allow to | |
| # only install [dev] dependencies so we end up installing all the rest as well. | |
| run: uv pip install --system .[dev] | |
| - name: Set jupyter token env | |
| run: echo "JUPYTER_TOKEN=$(openssl rand -hex 32)" >> $GITHUB_ENV | |
| - name: Run pytest | |
| run: pytest -v --driver ${{ matrix.browser }} tests_notebooks/ | |
| env: | |
| TAG: ${{ matrix.docker-tag }} | |
| - name: Upload screenshots as artifacts | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: Screenshots-${{ matrix.docker-tag }}-${{ matrix.browser }} | |
| path: screenshots/ | |
| if-no-files-found: error | |
| test-package: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| services: | |
| rabbitmq: | |
| image: rabbitmq:latest | |
| ports: | |
| - 5672:5672 | |
| steps: | |
| - name: Check out app | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.11' | |
| - name: Setup uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: 0.4.20 | |
| - name: Install package test dependencies | |
| run: uv pip install --system .[dev] | |
| - name: Run pytest | |
| run: pytest -v tests/ |