diff --git a/.github/workflows/render.yml b/.github/workflows/render.yml new file mode 100644 index 0000000..d93fca4 --- /dev/null +++ b/.github/workflows/render.yml @@ -0,0 +1,39 @@ +name: render + +defaults: + run: + shell: bash -ex {0} + +on: + push: + branches: [ main ] + paths-ignore: + - README.md + pull_request: + branches: [ main ] + paths-ignore: + - README.md + +jobs: + render: + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 + with: + python-version: "3.13" + - name: Install Python deps + shell: bash + run: | + python -m pip install nbformat nbclient pyyaml ipykernel + - uses: quarto-dev/quarto-actions/setup@v2 + - if: runner.os == 'Windows' + shell: bash + run: echo "QUARTO_PYTHON=python" >> $GITHUB_ENV + - run: quarto render slides.ipynb --execute --to revealjs diff --git a/slides.ipynb b/slides.ipynb index 9aa4f4f..2311089 100644 --- a/slides.ipynb +++ b/slides.ipynb @@ -20,6 +20,18 @@ "---" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "8b6ce59b082dd54c", + "metadata": {}, + "outputs": [], + "source": [ + "# | include: false\n", + "# install dependencies for the code in this document (add packages here if importing something new)\n", + "!pip install --quiet matplotlib" + ] + }, { "cell_type": "code", "execution_count": 1,