Skip to content

Commit 1d837b8

Browse files
authored
Merge pull request #9 from rossbar/port-circleci
Port over circleci config - needs some pipefitting.
2 parents f07923a + 5f79eb4 commit 1d837b8

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

.circleci/config.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 -r requirements.txt
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: make SPHINXOPTS="-nWT --keep-going" html
27+
28+
- save_cache:
29+
key: jupyter_ch
30+
paths:
31+
- _build/.jupyter_cache
32+
33+
- store_artifacts:
34+
path: _build/html
35+
36+
- persist_to_workspace:
37+
root: _build
38+
paths:
39+
- html
40+
41+
workflows:
42+
version: 2
43+
default:
44+
jobs:
45+
- 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: ${{ secrets.GITHUB_TOKEN }}
12+
api-token: ${{ secrets.CIRCLE_TOKEN }}
13+
artifact-path: 0/_build/html/index.html
14+
circleci-jobs: build-docs

0 commit comments

Comments
 (0)