Skip to content

Commit 4284c89

Browse files
committed
Move docs build check from CI into publish build-tests workflow [skip publish]
Signed-off-by: Arkadii Yakovets <2201626+arkid15r@users.noreply.github.com>
1 parent 0cd86fa commit 4284c89

4 files changed

Lines changed: 30 additions & 31 deletions

File tree

.github/workflows/publish-pre-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
if: needs.check.outputs.publish == 'true'
9999
permissions:
100100
contents: read
101-
uses: ./.github/workflows/run-build-dist.yml
101+
uses: ./.github/workflows/run-build-tests.yml
102102
with:
103103
environment: pre-release
104104
ref: ${{ github.event.workflow_run.head_sha }}

.github/workflows/publish-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- verify-release
5757
permissions:
5858
contents: read
59-
uses: ./.github/workflows/run-build-dist.yml
59+
uses: ./.github/workflows/run-build-tests.yml
6060
with:
6161
environment: release
6262
ref: ${{ needs.verify-release.outputs.tag_commit }}
Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build distribution
1+
name: Build tests
22

33
on:
44
workflow_call:
@@ -128,3 +128,30 @@ jobs:
128128
run: |
129129
rm -rf holidays
130130
uv run --frozen --isolated --no-default-groups --group tests --with ${{ matrix.dist.artifact }} -- pytest --dist loadscope --numprocesses auto tests/countries tests/financial
131+
132+
test-docs:
133+
name: Test docs build
134+
permissions:
135+
contents: read
136+
runs-on: ubuntu-24.04-arm
137+
steps:
138+
- name: Check out repository
139+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
140+
with:
141+
persist-credentials: false
142+
ref: ${{ inputs.ref }}
143+
144+
- name: Install uv
145+
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
146+
with:
147+
python-version: ${{ env.DEFAULT_PYTHON_VERSION }}
148+
version-file: uv.lock
149+
150+
- name: Install Python
151+
run: uv python install "$UV_PYTHON"
152+
153+
- name: Install dependencies
154+
run: uv sync --frozen --no-default-groups --no-install-project --group docs --link-mode=copy --no-build
155+
156+
- name: Build docs
157+
run: make doc

.github/workflows/run-code-tests.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -55,31 +55,3 @@ jobs:
5555
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
5656
with:
5757
token: ${{ secrets.CODECOV_TOKEN }}
58-
59-
test-docs:
60-
name: Test docs build
61-
needs:
62-
- test
63-
permissions:
64-
contents: read
65-
runs-on: ubuntu-24.04-arm
66-
steps:
67-
- name: Check out repository
68-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
69-
with:
70-
persist-credentials: false
71-
72-
- name: Install uv
73-
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
74-
with:
75-
python-version: ${{ env.DEFAULT_PYTHON_VERSION }}
76-
version-file: uv.lock
77-
78-
- name: Install Python
79-
run: uv python install "$UV_PYTHON"
80-
81-
- name: Install dependencies
82-
run: uv sync --frozen --no-default-groups --no-install-project --group docs --link-mode=copy --no-build
83-
84-
- name: Build docs
85-
run: make doc

0 commit comments

Comments
 (0)