-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'move-coop:main' into patch-1
- Loading branch information
Showing
5 changed files
with
29 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,60 +20,62 @@ jobs: | |
# Documentation CI | ||
docs-build: | ||
docker: | ||
- image: cimg/python:3.10 | ||
- image: cimg/python:3.12 | ||
steps: | ||
- checkout | ||
# Download and cache dependencies | ||
- restore_cache: | ||
keys: | ||
- v2-dependencies-python3.10-{{ checksum "./docs/requirements.txt" }} | ||
- v2-dependencies-python3.12-{{ checksum "./docs/requirements.txt" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- v2-dependencies-python3.10- | ||
- v2-dependencies-python3.12- | ||
- run: | ||
name: Install dependencies | ||
# Note that we the circleci node image installs stuff with a user "circleci", rather | ||
# than root. So we need to tell npm where to install stuff. | ||
command: | | ||
python3 -m venv venv | ||
. venv/bin/activate | ||
pip install -r ./docs/requirements.txt | ||
pip install uv | ||
uv venv | ||
source .venv/bin/activate | ||
uv pip install -r ./docs/requirements.txt | ||
- save_cache: | ||
paths: | ||
- ./venv | ||
key: v2-dependencies-python3.10-{{ checksum "./docs/requirements.txt" }} | ||
key: v2-dependencies-python3.12-{{ checksum "./docs/requirements.txt" }} | ||
- run: | ||
name: Build docs | ||
command: | | ||
. venv/bin/activate | ||
source .venv/bin/activate | ||
cd docs/ | ||
make deploy_docs | ||
cd .. | ||
docs-build-deploy: | ||
docker: | ||
- image: cimg/python:3.10-node | ||
- image: cimg/python:3.12-node | ||
steps: | ||
- checkout | ||
# Download and cache dependencies | ||
- restore_cache: | ||
keys: | ||
- v2-dependencies-python3.10-{{ checksum "./docs/requirements.txt" }} | ||
- v2-dependencies-python3.12-{{ checksum "./docs/requirements.txt" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- v2-dependencies-python3.10- | ||
- v2-dependencies-python3.12- | ||
- run: | ||
name: Install dependencies | ||
# Note that we the circleci node image installs stuff with a user "circleci", rather | ||
# than root. So we need to tell npm where to install stuff. | ||
command: | | ||
npm set prefix=/home/circleci/npm | ||
npm install -g --silent [email protected] | ||
python3 -m venv venv | ||
. venv/bin/activate | ||
pip install -r ./docs/requirements.txt | ||
pip install uv | ||
uv venv | ||
source .venv/bin/activate | ||
uv pip install -r ./docs/requirements.txt | ||
- save_cache: | ||
paths: | ||
- ./venv | ||
key: v2-dependencies-python3.10-{{ checksum "./docs/requirements.txt" }} | ||
key: v2-dependencies-python3.12-{{ checksum "./docs/requirements.txt" }} | ||
- add_ssh_keys: | ||
# This SSH key is "CircleCI Docs" in https://github.com/move-coop/parsons/settings/keys | ||
# We need write access to the Parsons repo, so we can push the "gh-pages" branch. | ||
|
@@ -85,7 +87,7 @@ jobs: | |
# (This file tell Github Pages that we want to include all files in docs/, including those | ||
# that start with an underscore like _static/). | ||
command: | | ||
. venv/bin/activate | ||
source .venv/bin/activate | ||
cd docs/ | ||
make deploy_docs | ||
cd .. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ jobs: | |
matrix: | ||
os: | ||
- ubuntu-latest | ||
- windows-latest | ||
python-version: | ||
- "3.12" | ||
- "3.11" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters