Skip to content

Commit c421814

Browse files
committed
CI: adding circleCI rendering for PRs
1 parent 6143a3a commit c421814

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.circleci/config.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: 2.1
2+
3+
jobs:
4+
5+
build-docs:
6+
docker:
7+
- image: cimg/python:3.11
8+
9+
steps:
10+
- checkout
11+
12+
- run:
13+
name: Install CI dependencies
14+
command: python -m pip install --upgrade tox
15+
16+
- run:
17+
name: Build HTML rendering of notebooks
18+
no_output_timeout: 30m
19+
command: |
20+
python -m tox -e buildhtml
21+
22+
- store_artifacts:
23+
path: _build/html
24+
25+
workflows:
26+
version: 2
27+
default:
28+
jobs:
29+
- build-docs
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Run CircleCI artifacts redirector, rendered pages are under Details
2+
3+
on: [status]
4+
jobs:
5+
circleci_artifacts_redirector_job:
6+
runs-on: ubuntu-latest
7+
name: Run CircleCI artifacts redirector
8+
steps:
9+
- name: GitHub Action step
10+
uses: scientific-python/circleci-artifacts-redirector-action@4e13a10d89177f4bfc8007a7064bdbeda848d8d1 # v1.0.0
11+
with:
12+
repo-token: ${{ secrets.GITHUB_TOKEN }}
13+
api-token: ${{ secrets.SPHEREX_DOCUMENTATION_CIRCLE_TOKEN }}
14+
artifact-path: 0/_build/html/index.html
15+
circleci-jobs: build-docs

0 commit comments

Comments
 (0)