|
1 | 1 | name: Docs |
2 | | - |
3 | 2 | on: [push, pull_request] |
4 | | - |
5 | 3 | jobs: |
6 | | - pre_job: |
7 | | - name: Path match check |
8 | | - runs-on: ubuntu-latest |
9 | | - # Map a step output to a job output |
10 | | - outputs: |
11 | | - should_skip: ${{ steps.skip_check.outputs.should_skip }} |
12 | | - steps: |
13 | | - - id: skip_check |
14 | | - uses: fkirc/skip-duplicate-actions@master |
15 | | - with: |
16 | | - github_token: ${{ github.token }} |
17 | | - paths: '["docs/**", "requirements/docs.txt"]' |
18 | | - docs: |
19 | | - name: Checking docs build |
20 | | - needs: pre_job |
21 | | - if: ${{ needs.pre_job.outputs.should_skip != 'true' }} |
22 | | - runs-on: ubuntu-latest |
23 | | - steps: |
24 | | - - uses: actions/checkout@v6 |
25 | | - - uses: actions/setup-python@v6 |
26 | | - with: |
27 | | - python-version: 3.9 |
28 | | - - name: pip cache |
29 | | - uses: actions/cache@v5 |
30 | | - with: |
31 | | - path: ~/.cache/pip |
32 | | - key: ${{ runner.os }}-pip-docs-${{ hashFiles('requirements/docs.txt') }} |
33 | | - restore-keys: | |
34 | | - ${{ runner.os }}-pip-docs |
35 | | - - name: Install system dependencies |
36 | | - run: | |
37 | | - sudo apt-get -y -qq update |
38 | | - sudo apt-get install -y swig openssl libssl-dev |
39 | | - - name: Install dependencies |
40 | | - run: | |
41 | | - python -m pip install --upgrade pip |
42 | | - pip install -r requirements/docs.txt |
43 | | - pip install -e . |
44 | | - - name: Check Docs build |
45 | | - run: make docs |
| 4 | + pre_job: |
| 5 | + name: Path match check |
| 6 | + runs-on: ubuntu-latest |
| 7 | + # Map a step output to a job output |
| 8 | + outputs: |
| 9 | + should_skip: ${{ steps.skip_check.outputs.should_skip }} |
| 10 | + steps: |
| 11 | + - id: skip_check |
| 12 | + uses: fkirc/skip-duplicate-actions@master |
| 13 | + with: |
| 14 | + github_token: ${{ github.token }} |
| 15 | + paths: '["docs/**", "pyproject.toml"]' |
| 16 | + docs: |
| 17 | + name: Checking docs build |
| 18 | + needs: pre_job |
| 19 | + if: ${{ needs.pre_job.outputs.should_skip != 'true' }} |
| 20 | + runs-on: ubuntu-latest |
| 21 | + steps: |
| 22 | + - uses: actions/checkout@v6 |
| 23 | + with: |
| 24 | + fetch-depth: 0 |
| 25 | + - name: Install system dependencies |
| 26 | + run: | |
| 27 | + sudo apt-get -y -qq update |
| 28 | + sudo apt-get install -y swig openssl libssl-dev |
| 29 | + - name: Install uv |
| 30 | + uses: astral-sh/setup-uv@v7 |
| 31 | + with: |
| 32 | + python-version: 3.9 |
| 33 | + activate-environment: "true" |
| 34 | + enable-cache: "true" |
| 35 | + - name: Install dependencies |
| 36 | + run: uv sync --extra docs |
| 37 | + - name: Check Docs build |
| 38 | + run: make docs |
0 commit comments