Skip to content

Commit 1262f67

Browse files
committed
Test docs also in GHA.
1 parent b07f20c commit 1262f67

File tree

3 files changed

+48
-2
lines changed

3 files changed

+48
-2
lines changed

.github/workflows/docs.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 12 * * 0' # run once a week on Sunday
8+
# Allows running this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
env:
12+
FORCE_COLOR: 1
13+
14+
jobs:
15+
tests:
16+
name: Docs
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Set up Python 3.13
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: 3.13
25+
26+
- name: Get pip cache dir
27+
id: pip-cache
28+
run: |
29+
echo "::set-output name=dir::$(pip cache dir)"
30+
31+
- name: Cache
32+
uses: actions/cache@v4
33+
with:
34+
path: ${{ steps.pip-cache.outputs.dir }}
35+
key:
36+
docs-v1-${{ hashFiles('**/pyproject.toml') }}
37+
restore-keys: |
38+
docs-v1-
39+
40+
- name: Install dependencies
41+
run: |
42+
python -m pip install -U pip tox
43+
44+
- name: Docs
45+
run: |
46+
tox -e docs

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
~/.cache/pip
2424
~/.cache/pre-commit
2525
key:
26-
lint-v1-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/.pre-commit-config.yaml') }}
26+
lint-v1-${{ hashFiles('**/pyproject.toml') }}-${{ hashFiles('**/.pre-commit-config.yaml') }}
2727
restore-keys: |
2828
lint-v1-
2929

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
with:
5454
path: ${{ steps.pip-cache.outputs.dir }}
5555
key:
56-
${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.pytest-version }}-v1-${{ hashFiles('**/setup.py') }}
56+
${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.pytest-version }}-v1-${{ hashFiles('**/pyproject.toml') }}
5757
restore-keys: |
5858
${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.pytest-version }}-v1-
5959

0 commit comments

Comments
 (0)