Skip to content

Commit 09e99e7

Browse files
committed
Port over circleci config - needs some pipefitting.
1 parent f07923a commit 09e99e7

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

.circleci/config.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
version: 2.1
2+
3+
jobs:
4+
5+
build-docs:
6+
docker:
7+
- image: cimg/python:3.12
8+
9+
steps:
10+
- attach_workspace:
11+
at: ~/
12+
13+
- checkout
14+
15+
- run:
16+
name: Install CI dependencies
17+
command: python -m pip install --upgrade tox
18+
19+
- restore_cache:
20+
keys:
21+
- jupyter_ch
22+
23+
- run:
24+
name: Build HTML rendering of notebooks
25+
no_output_timeout: 30m
26+
command: |
27+
python -m tox -e py312-buildhtml
28+
29+
- save_cache:
30+
key: jupyter_ch
31+
paths:
32+
- _build/.jupyter_cache
33+
34+
- store_artifacts:
35+
path: _build/html
36+
37+
- persist_to_workspace:
38+
root: _build
39+
paths:
40+
- html
41+
42+
workflows:
43+
version: 2
44+
default:
45+
jobs:
46+
- build-docs
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Run CircleCI asrtifacts redirector for rendered HTML
2+
on: [status]
3+
jobs:
4+
circleci_artifacts_redirector_job:
5+
runs-on: ubuntu-latest
6+
name: Run CircleCI artifacts redirector
7+
steps:
8+
- name: GitHub Action step
9+
uses: scientific-python/circleci-artifacts-redirector-action@4e13a10d89177f4bfc8007a7064bdbeda848d8d1 # v1.0.0
10+
with:
11+
repo-token: ${{ NEW_TOKEN }}
12+
api-token: ${{ NEW_TOKEN1 }}
13+
artifact-path: 0/_build/html/index.html
14+
circleci-jobs: build-docs

0 commit comments

Comments
 (0)