Merge pull request #57 from aeturrell/quarto-uv #39
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: tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| concurrency: | |
| group: tests-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - uses: pre-commit/action@v3.0.1 | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| - name: Set up Python | |
| run: uv python install | |
| - name: Install dependencies | |
| run: uv sync --all-extras --dev | |
| - name: Install Quarto | |
| uses: quarto-dev/quarto-actions/setup@v2 | |
| with: | |
| version: "1.5.57" | |
| - name: set timezone | |
| run: | | |
| TZ="Europe/London" && | |
| sudo ln -snf /usr/share/zoneinfo/$TZ /etc/localtime | |
| - name: install linux deps | |
| run: | | |
| sudo apt-get -y install openssl graphviz nano texlive graphviz-dev unzip build-essential | |
| - name: build the book | |
| run: | | |
| uv run quarto render --execute | |
| - name: success | |
| run: | | |
| echo "Success in building book without errors!" |