|
1 | 1 | name: tests |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: [main] |
6 | | - pull_request: |
| 4 | + push: |
| 5 | + branches: [main] |
| 6 | + pull_request: |
7 | 7 |
|
8 | 8 | concurrency: |
9 | | - group: tests-${{ github.workflow }}-${{ github.ref }} |
10 | | - cancel-in-progress: true |
| 9 | + group: tests-${{ github.workflow }}-${{ github.ref }} |
| 10 | + cancel-in-progress: true |
11 | 11 |
|
12 | 12 | jobs: |
13 | | - pre-commit: |
14 | | - runs-on: ubuntu-latest |
15 | | - steps: |
16 | | - - uses: actions/checkout@v4 |
17 | | - - uses: actions/setup-python@v5 |
18 | | - with: |
19 | | - python-version: '3.10' |
20 | | - - uses: pre-commit/action@v3.0.1 |
21 | | - |
22 | | - build: |
23 | | - runs-on: ubuntu-latest |
24 | | - steps: |
25 | | - - name: Check out the repository |
26 | | - uses: actions/checkout@v4 |
27 | | - with: |
28 | | - fetch-depth: 2 |
29 | | - |
30 | | - - name: Install uv |
31 | | - uses: astral-sh/setup-uv@v4 |
32 | | - |
33 | | - - name: Set up Python |
34 | | - run: uv python install |
35 | | - |
36 | | - - name: Install dependencies |
37 | | - run: uv sync --all-extras --dev |
38 | | - |
39 | | - - name: Install Quarto |
40 | | - uses: quarto-dev/quarto-actions/setup@v2 |
41 | | - with: |
42 | | - version: "1.5.57" |
43 | | - |
44 | | - - name: set timezone |
45 | | - run: | |
46 | | - TZ="Europe/London" && |
47 | | - sudo ln -snf /usr/share/zoneinfo/$TZ /etc/localtime |
48 | | -
|
49 | | - - name: install linux deps |
50 | | - run: | |
51 | | - sudo apt-get -y install openssl graphviz nano texlive graphviz-dev unzip build-essential |
52 | | -
|
53 | | - - name: build the book |
54 | | - run: | |
55 | | - uv run quarto render --execute |
56 | | -
|
57 | | - - name: success |
58 | | - run: | |
59 | | - echo "Success in building book without errors!" |
| 13 | + pre-commit: |
| 14 | + runs-on: ubuntu-latest |
| 15 | + steps: |
| 16 | + - uses: actions/checkout@v4 |
| 17 | + - uses: actions/setup-python@v5 |
| 18 | + with: |
| 19 | + python-version: "3.10" |
| 20 | + - uses: pre-commit/action@v3.0.1 |
| 21 | + |
| 22 | + build: |
| 23 | + runs-on: ubuntu-latest |
| 24 | + steps: |
| 25 | + - name: Check out the repository |
| 26 | + uses: actions/checkout@v4 |
| 27 | + with: |
| 28 | + fetch-depth: 2 |
| 29 | + |
| 30 | + - name: Install uv |
| 31 | + uses: astral-sh/setup-uv@v4 |
| 32 | + |
| 33 | + - name: Set up Python |
| 34 | + run: uv python install |
| 35 | + |
| 36 | + - name: Install dependencies |
| 37 | + run: uv sync --all-extras --dev |
| 38 | + |
| 39 | + - name: Install Quarto |
| 40 | + uses: quarto-dev/quarto-actions/setup@v2 |
| 41 | + with: |
| 42 | + version: "1.5.57" |
| 43 | + |
| 44 | + - name: set timezone |
| 45 | + run: | |
| 46 | + TZ="Europe/London" && |
| 47 | + sudo ln -snf /usr/share/zoneinfo/$TZ /etc/localtime |
| 48 | +
|
| 49 | + - name: install linux deps |
| 50 | + run: | |
| 51 | + sudo apt-get -y install openssl graphviz nano texlive graphviz-dev unzip build-essential |
| 52 | +
|
| 53 | + - name: build the book |
| 54 | + run: | |
| 55 | + uv run quarto render --execute |
| 56 | +
|
| 57 | + - name: success |
| 58 | + run: | |
| 59 | + echo "Success in building book without errors!" |
0 commit comments