From 09e99e75b74fa0f4708ac4279dd551c11f9c108b Mon Sep 17 00:00:00 2001 From: Ross Barnowski Date: Sun, 11 May 2025 16:10:58 -0700 Subject: [PATCH 1/4] Port over circleci config - needs some pipefitting. --- .circleci/config.yml | 46 +++++++++++++++++++ .../circleci-artifacts-redirector.yml | 14 ++++++ 2 files changed, 60 insertions(+) create mode 100644 .circleci/config.yml create mode 100644 .github/workflows/circleci-artifacts-redirector.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..bdf639e --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,46 @@ +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 --upgrade tox + + - restore_cache: + keys: + - jupyter_ch + + - run: + name: Build HTML rendering of notebooks + no_output_timeout: 30m + command: | + python -m tox -e py312-buildhtml + + - 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..e0b175b --- /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: ${{ NEW_TOKEN }} + api-token: ${{ NEW_TOKEN1 }} + artifact-path: 0/_build/html/index.html + circleci-jobs: build-docs From fca489d455a1e004c6191a668dee306e6c674858 Mon Sep 17 00:00:00 2001 From: Ross Barnowski Date: Sun, 11 May 2025 16:24:52 -0700 Subject: [PATCH 2/4] Add token for circle ci artifact redirector. --- .github/workflows/circleci-artifacts-redirector.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/circleci-artifacts-redirector.yml b/.github/workflows/circleci-artifacts-redirector.yml index e0b175b..aeba8f9 100644 --- a/.github/workflows/circleci-artifacts-redirector.yml +++ b/.github/workflows/circleci-artifacts-redirector.yml @@ -8,7 +8,7 @@ jobs: - name: GitHub Action step uses: scientific-python/circleci-artifacts-redirector-action@4e13a10d89177f4bfc8007a7064bdbeda848d8d1 # v1.0.0 with: - repo-token: ${{ NEW_TOKEN }} - api-token: ${{ NEW_TOKEN1 }} + repo-token: ${{ secrets.GITHUB_TOKEN }} + api-token: ${{ secrets.CIRCLE_TOKEN }} artifact-path: 0/_build/html/index.html circleci-jobs: build-docs From 9a6a75050e96b14083a2df3b1a770ad1d6023637 Mon Sep 17 00:00:00 2001 From: Ross Barnowski Date: Mon, 12 May 2025 11:53:27 -0700 Subject: [PATCH 3/4] WIP: Build site as smoketest. --- .circleci/config.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bdf639e..bfcd570 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,7 +14,7 @@ jobs: - run: name: Install CI dependencies - command: python -m pip install --upgrade tox + command: python -m pip install -r requirements.txt - restore_cache: keys: @@ -23,8 +23,7 @@ jobs: - run: name: Build HTML rendering of notebooks no_output_timeout: 30m - command: | - python -m tox -e py312-buildhtml + command: make html - save_cache: key: jupyter_ch From 5f79eb428dfafce9fb1edc077aa588474ab59364 Mon Sep 17 00:00:00 2001 From: Ross Barnowski Date: Mon, 12 May 2025 12:01:27 -0700 Subject: [PATCH 4/4] WIP: Add sphinx flags to circleci build. --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bfcd570..1f85e2e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,7 +23,7 @@ jobs: - run: name: Build HTML rendering of notebooks no_output_timeout: 30m - command: make html + command: make SPHINXOPTS="-nWT --keep-going" html - save_cache: key: jupyter_ch