Skip to content

Commit cb36f4a

Browse files
committed
Update checks so that the build-doc job runs doctest
1 parent c513873 commit cb36f4a

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/checks.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ jobs:
5454
options: ${{ matrix.options || 'full' }}
5555
groups: test ${{ matrix.extra_groups }}
5656

57-
- name: Run tests
58-
run: uv run pytest -W error tests/unit tests/doc --cov=src --cov-report=xml
57+
- name: Run unit tests
58+
run: uv run pytest -W error tests/unit --cov=src --cov-report=xml
5959
env:
6060
PYTEST_TORCH_DTYPE: ${{ matrix.dtype || 'float32' }}
6161

@@ -65,7 +65,7 @@ jobs:
6565
token: ${{ secrets.CODECOV_TOKEN }}
6666

6767
build-doc:
68-
name: Build documentation
68+
name: Build and test documentation
6969
runs-on: ubuntu-latest
7070
steps:
7171
- name: Checkout repository
@@ -84,6 +84,10 @@ jobs:
8484
working-directory: docs
8585
run: uv run make dirhtml
8686

87+
- name: Test Documentation
88+
working-directory: docs
89+
run: uv run make doctest
90+
8791
check-links:
8892
name: Link correctness
8993
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)