Skip to content

Commit

Permalink
Don't build docs in main tests or trigger main tests for docs-only
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Mar 4, 2023
1 parent b4c2344 commit cb65bb6
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 10 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/test-cygwin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
name: Test Cygwin

on: [push, pull_request, workflow_dispatch]
on:
push:
paths-ignore:
- ".github/workflows/docs.yml"
- "docs/**"
pull_request:
paths-ignore:
- ".github/workflows/docs.yml"
- "docs/**"
workflow_dispatch:

permissions:
contents: read
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/test-docker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
name: Test Docker

on: [push, pull_request, workflow_dispatch]
on:
push:
paths-ignore:
- ".github/workflows/docs.yml"
- "docs/**"
pull_request:
paths-ignore:
- ".github/workflows/docs.yml"
- "docs/**"
workflow_dispatch:

permissions:
contents: read
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/test-mingw.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
name: Test MinGW

on: [push, pull_request, workflow_dispatch]
on:
push:
paths-ignore:
- ".github/workflows/docs.yml"
- "docs/**"
pull_request:
paths-ignore:
- ".github/workflows/docs.yml"
- "docs/**"
workflow_dispatch:

permissions:
contents: read
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
name: Test Windows

on: [push, pull_request, workflow_dispatch]
on:
push:
paths-ignore:
- ".github/workflows/docs.yml"
- "docs/**"
pull_request:
paths-ignore:
- ".github/workflows/docs.yml"
- "docs/**"
workflow_dispatch:

permissions:
contents: read
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
name: Test

on: [push, pull_request, workflow_dispatch]
on:
push:
paths-ignore:
- ".github/workflows/docs.yml"
- "docs/**"
pull_request:
paths-ignore:
- ".github/workflows/docs.yml"
- "docs/**"
workflow_dispatch:

permissions:
contents: read
Expand Down Expand Up @@ -96,11 +105,6 @@ jobs:
name: errors
path: Tests/errors

- name: Docs
if: startsWith(matrix.os, 'ubuntu') && matrix.python-version == 3.11
run: |
make doccheck
- name: After success
run: |
.ci/after_success.sh
Expand Down

0 comments on commit cb65bb6

Please sign in to comment.