Weekly test for notebooks #61
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: Weekly test for notebooks | |
| on: | |
| schedule: | |
| - cron: "0 12 * * 1" # Every Monday at 12:00 (noon) | |
| workflow_dispatch: # Allows for manual triggering of the workflow | |
| jobs: | |
| define-matrix: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.set-matrix.outputs.matrix }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: 'linogaliana/python-datascientist-notebooks' | |
| - name: Define matrix | |
| id: set-matrix | |
| run: | | |
| echo "::set-output name=matrix::$(find . -type f -name "*.ipynb" \ | |
| ! -name "_*" \ | |
| ! -regex '.*/getting-started/.*' \ | |
| ! -regex '.*/git/.*' \ | |
| ! -regex '.*/modern-ds/.*' \ | |
| ! -regex '.*/manipulation/04a_webscraping_TP.*' \ | |
| | jq -R -s -c 'split("\n")[:-1]')" | |
| check: | |
| needs: define-matrix | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| strategy: | |
| matrix: | |
| manifest: ${{ fromJson(needs.define-matrix.outputs.matrix) }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: 'linogaliana/python-datascientist-notebooks' | |
| - name: Install system dependencies | |
| run: | | |
| sudo ./build/requirements.sh | |
| - name: Install the latest version of uv and set the python version to 3.13t | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: "latest" | |
| python-version: "3.12" | |
| - uses: quarto-dev/quarto-actions/setup@v2 | |
| - run: | | |
| sudo ./build/requirements.sh | |
| uv run quarto --version | |
| - name: Install Python dependencies | |
| run: | | |
| uv sync | |
| - run: | | |
| uv run quarto render ${{ matrix.manifest }} --execute |