Weekly test for notebooks #15
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.*' \ | |
| ! -regex '.*/NLP/05_exo_supp.*' \ | |
| | jq -R -s -c 'split("\n")[:-1]')" | |
| check: | |
| needs: define-matrix | |
| runs-on: ubuntu-latest | |
| container: linogaliana/python-datascientist: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' | |
| - run: | | |
| quarto render ${{ matrix.manifest }} --execute |