diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..1f85e2e --- /dev/null +++ b/.circleci/config.yml @@ -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 diff --git a/.github/workflows/circleci-artifacts-redirector.yml b/.github/workflows/circleci-artifacts-redirector.yml new file mode 100644 index 0000000..aeba8f9 --- /dev/null +++ b/.github/workflows/circleci-artifacts-redirector.yml @@ -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