Skip to content

Commit 8901b1e

Browse files
authored
Merge pull request #119 from bsipocz/ENH_switch_to_JB2
ENH: switching to JB2 infrastructure
2 parents 675041a + 972d930 commit 8901b1e

18 files changed

+153
-176
lines changed

.circleci/config.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
version: 2.1
22

3-
jobs:
43

4+
jobs:
55
build-docs:
66
docker:
77
- image: cimg/python:3.12
8-
98
steps:
10-
- attach_workspace:
11-
at: ~/
12-
139
- checkout
1410

1511
- run:
16-
name: Install CI dependencies
17-
command: python -m pip install --upgrade tox
12+
name: Install Node.js
13+
command: |
14+
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
15+
sudo apt-get install -y nodejs
1816
19-
- restore_cache:
20-
keys:
21-
- jupyter_ch
17+
- run:
18+
name: Install mystmd
19+
command: |
20+
npm install mystmd
2221
2322
- run:
24-
name: Build HTML rendering of notebooks
25-
no_output_timeout: 30m
23+
name: Install Python dependencies
2624
command: |
25+
python -m pip install --upgrade pip tox
26+
27+
- run:
28+
name: Build documentation
29+
no_output_timeout: 60m
30+
environment:
31+
# Ensure this is same as store_artifacts path below
32+
DOCS_PATH: _build/html
33+
command: |
34+
export BASE_URL="/output/job/$CIRCLE_WORKFLOW_JOB_ID/artifacts/0/$DOCS_PATH"
35+
export OMP_NUM_THREADS=1
2736
python -m tox -e py312-buildhtml
2837
29-
- save_cache:
30-
key: jupyter_ch
31-
paths:
32-
- _build/.jupyter_cache
3338
3439
- store_artifacts:
3540
path: _build/html
3641

37-
- persist_to_workspace:
38-
root: _build
39-
paths:
40-
- html
41-
4242
workflows:
4343
version: 2
44-
default:
44+
build-and-docs:
4545
jobs:
4646
- build-docs

.github/workflows/ci_publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ jobs:
2424
- name: Setup Python
2525
uses: actions/setup-python@v5
2626
with:
27-
python-version: '3.11'
27+
python-version: '3.12'
2828

2929
- name: Install dependencies
3030
run: python -m pip install --upgrade tox
3131

3232
- name: Execute notebooks while building HTMLs
33-
run: tox -e py311-buildhtml
33+
run: tox -e py312-buildhtml
3434

3535
- name: Publish
3636
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0

.github/workflows/ci_tests_run_notebooks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ jobs:
6868
- name: Setup Python
6969
uses: actions/setup-python@v5
7070
with:
71-
python-version: '3.11'
71+
python-version: '3.12'
7272

7373
- name: Install dependencies
7474
run: python -m pip install --upgrade tox
7575

7676
- name: Execute notebooks as testing
77-
run: tox -e py311-buildhtml
77+
run: tox -e py312-buildhtml

ignore_osx_testing

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# ignore these 10 now as excluding execution for these is a combination that passes JB2 building on CircleCI.
2+
# Note that the first 2 are excluded for all kinds of testing; while the parallelize causes issues for GHA JB2 builds and non linux testing, too.
3+
#
4+
tutorials/parquet-catalog-demos/neowise-source-table-lightcurves
5+
tutorials/parquet-catalog-demos/neowise-source-table-strategies
6+
tutorials/parallelize/Parallelize_Convolution
7+
tutorials/roman_simulations/roman_hlss_number_density
8+
tutorials/cosmodc2/cosmoDC2_TAP_access
9+
tutorials/openuniversesims/openuniverse2024_roman_simulated_timedomainsurvey
10+
tutorials/openuniversesims/openuniverse2024_roman_simulated_wideareasurvey
11+
tutorials/parquet-catalog-demos/wise-allwise-catalog-demo
12+
tutorials/cloud_access/euclid-cloud-access
13+
tutorials/cloud_access/cloud-access-intro
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
# Both NEOWISE parquet notebooks work with large data that doesn't work within CircleCI or GHA resource limits
12
tutorials/parquet-catalog-demos/neowise-source-table-lightcurves
23
tutorials/parquet-catalog-demos/neowise-source-table-strategies
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# The way the notebooks use the multiprocessing module is known to not work on non-Linux
2+
tutorials/parallelize/Parallelize_Convolution

ignore_tutorials/ignore_rendering

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Runs out of memory on GHA using the JB2 stack
2+
tutorials/parallelize/Parallelize_Convolution
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# The way the notebooks use the multiprocessing module is known to not work on non-Linux
2+
tutorials/parallelize/Parallelize_Convolution

0 commit comments

Comments
 (0)