Skip to content

Commit edb8b18

Browse files
authored
Merge pull request #4 from bsipocz/CI_adding_circleCI_for_PRs
CI: adding circleCI rendering for PRs
2 parents 6143a3a + 0cf3a60 commit edb8b18

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-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: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Run CircleCI artifacts redirector for rendered HTML
2+
3+
on: [status]
4+
jobs:
5+
circleci_artifacts_redirector_job:
6+
runs-on: ubuntu-latest
7+
permissions:
8+
statuses: write
9+
name: Run CircleCI artifacts redirector
10+
steps:
11+
- name: GitHub Action step
12+
uses: scientific-python/circleci-artifacts-redirector-action@7eafdb60666f57706a5525a2f5eb76224dc8779b # v1.1.0
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
api-token: ${{ secrets.SPHEREX_DOCUMENTATION_CIRCLE_TOKEN }}
16+
artifact-path: 0/_build/html/index.html
17+
circleci-jobs: build-docs

0 commit comments

Comments
 (0)