Update dependencies for jupyter demo #7
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: Test demo notebooks | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "demo/**" | |
| - ".github/workflows/test-demo-notebooks.yml" | |
| pull_request: | |
| paths: | |
| - "demo/**" | |
| - ".github/workflows/test-demo-notebooks.yml" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: {} | |
| jobs: | |
| test-notebook: | |
| name: Execute demo notebooks (${{ matrix.os }}, py${{ matrix.python-version }}) | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| python-version: ["3.10", "3.14"] | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: pip install -r demo/requirements.in | |
| - name: Execute notebook | |
| run: > | |
| jupyter nbconvert --to notebook --execute | |
| --ExecutePreprocessor.timeout=300 | |
| demo/explore-voc4cat.ipynb |