Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
version: 2.1

jobs:

build-docs:
docker:
- image: cimg/python:3.12

steps:
- attach_workspace:
at: ~/

- checkout

- run:
name: Install CI dependencies
command: python -m pip install -r requirements.txt

- restore_cache:
keys:
- jupyter_ch

- run:
name: Build HTML rendering of notebooks
no_output_timeout: 30m
command: make SPHINXOPTS="-nWT --keep-going" html

- save_cache:
key: jupyter_ch
paths:
- _build/.jupyter_cache

- store_artifacts:
path: _build/html

- persist_to_workspace:
root: _build
paths:
- html

workflows:
version: 2
default:
jobs:
- build-docs
14 changes: 14 additions & 0 deletions .github/workflows/circleci-artifacts-redirector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Run CircleCI asrtifacts redirector for rendered HTML
on: [status]
jobs:
circleci_artifacts_redirector_job:
runs-on: ubuntu-latest
name: Run CircleCI artifacts redirector
steps:
- name: GitHub Action step
uses: scientific-python/circleci-artifacts-redirector-action@4e13a10d89177f4bfc8007a7064bdbeda848d8d1 # v1.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
api-token: ${{ secrets.CIRCLE_TOKEN }}
artifact-path: 0/_build/html/index.html
circleci-jobs: build-docs