Skip to content

Commit

Permalink
Merge pull request #6991 from hugovk/gha-docs-only
Browse files Browse the repository at this point in the history
Build docs in own workflow
  • Loading branch information
radarhere committed Mar 6, 2023
2 parents eccc1e9 + 29b6db4 commit 4ca3fc0
Show file tree
Hide file tree
Showing 7 changed files with 105 additions and 11 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Docs

on:
push:
paths:
- ".github/workflows/docs.yml"
- "docs/**"
pull_request:
paths:
- ".github/workflows/docs.yml"
- "docs/**"
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:

runs-on: ubuntu-latest
name: Docs

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
cache: pip
cache-dependency-path: ".ci/*.sh"

- name: Build system information
run: python3 .github/workflows/system-info.py

- name: Install Linux dependencies
run: |
.ci/install.sh
env:
GHA_PYTHON_VERSION: "3.x"

- name: Build
run: |
.ci/build.sh
- name: Docs
run: |
make doccheck
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
4 changes: 3 additions & 1 deletion .github/workflows/test-valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@ name: Test Valgrind
on:
push:
paths:
- ".github/workflows/test-valgrind.yml"
- "**.c"
- "**.h"
pull_request:
paths:
- ".github/workflows/test-valgrind.yml"
- "**.c"
- "**.h"
workflow_dispatch:

permissions:
contents: read

concurrency:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

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 4ca3fc0

Please sign in to comment.