Skip to content

Commit dc4b632

Browse files
committed
test calling from other workflows
1 parent ca78e86 commit dc4b632

File tree

3 files changed

+30
-13
lines changed

3 files changed

+30
-13
lines changed

.github/workflows/build-docs.yml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,34 @@
1-
name: build_docs
1+
name: Build docs
22
on:
33
push:
4-
branches:
5-
- main
4+
# branches:
5+
# - main
6+
# paths:
7+
# - 'docs'
8+
69
jobs:
710
deploy:
811
runs-on: ubuntu-latest
912
permissions:
1013
contents: write
1114
steps:
12-
- uses: actions/checkout@v2
13-
- uses: astral-sh/setup-uv@v6
15+
- name: Checkout repository
16+
uses: actions/checkout@v2
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v6
1419
with:
1520
version: "0.9.5"
16-
- run: uv python install
17-
- run: uv sync --group docs
18-
- run: uv run mkdocs gh-deploy --force --clean --verbose
21+
- name: Set up Python
22+
run: uv python install
23+
- name: Install dependencies for docs
24+
run: uv sync --group docs
25+
- name: Build notebooks and upload artifact
26+
uses: ./github/workflows/build-notebooks.yml
27+
- name: Download artifact from previous step
28+
uses: actions/download-artifact@v5
29+
with:
30+
name: notebooks
31+
- name: Test if notebooks were downloaded
32+
run: ls -la docs/notebooks
33+
# - name: Build and deploy docs
34+
# run: uv run mkdocs gh-deploy --force --clean --verbose

.github/workflows/build-notebooks.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: Build notebooks
22
on:
3-
push:
4-
# paths:
5-
# - 'docs/notebook_source'
3+
workflow_call:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 12 * * MON"
67

78
jobs:
8-
deploy:
9+
build:
910
runs-on: ubuntu-latest
1011
permissions:
1112
contents: write

docs/notebook_source/1-the-basics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194
sampler_type=SamplerType.CATEGORY,
195195
params=CategorySamplerParams(values=["18-25", "25-35", "35-50", "50-65", "65+"]),
196196
)
197-
197+
)
198198

199199
# Optionally validate that the columns are configured correctly.
200200
config_builder.validate()

0 commit comments

Comments
 (0)