-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from lsst-sqre:tickets/DM-45563
DM-45563: Get JupyterHub XSRF token from each redirect hop
- Loading branch information
Showing
17 changed files
with
1,510 additions
and
978 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 |
---|---|---|
@@ -1,5 +1,12 @@ | ||
name: CI | ||
|
||
env: | ||
# Current supported Python version. For applications, there is generally no | ||
# reason to support multiple Python versions, so all actions are run with | ||
# this version. Quote the version to avoid interpretation as a floating | ||
# point number. | ||
PYTHON_VERSION: "3.12" | ||
|
||
"on": | ||
merge_group: {} | ||
pull_request: {} | ||
|
@@ -28,7 +35,7 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
|
@@ -37,19 +44,15 @@ jobs: | |
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
strategy: | ||
matrix: | ||
python: | ||
- "3.12" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Run tox | ||
uses: lsst-sqre/run-tox@v1 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
tox-envs: "py,coverage-report,typing" | ||
tox-requirements: requirements/tox.txt | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
|
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,48 @@ | ||
# The dependencies need --allow-unsafe because kubernetes-asyncio and | ||
# (transitively) pre-commit depends on setuptools, which is normally not | ||
# allowed to appear in a hashed dependency file. | ||
.PHONY: help | ||
help: | ||
@echo "Make targets for example" | ||
@echo "make init - Set up dev environment" | ||
@echo "make run - Start a local development instance" | ||
@echo "make update - Update pinned dependencies and run make init" | ||
@echo "make update-deps - Update pinned dependencies" | ||
@echo "make update-deps-no-hashes - Pin dependencies without hashes" | ||
|
||
.PHONY: init | ||
init: | ||
pip install --upgrade uv | ||
uv pip install -r requirements/main.txt -r requirements/dev.txt \ | ||
-r requirements/tox.txt | ||
uv pip install --editable . | ||
rm -rf .tox | ||
uv pip install --upgrade pre-commit | ||
pre-commit install | ||
|
||
.PHONY: run | ||
run: | ||
tox run -e run | ||
|
||
.PHONY: update | ||
update: update-deps init | ||
|
||
.PHONY: update-deps | ||
update-deps: | ||
pip install --upgrade pip-tools pip setuptools | ||
pip-compile --upgrade --resolver=backtracking --build-isolation \ | ||
--allow-unsafe --generate-hashes \ | ||
pip install --upgrade uv | ||
uv pip install --upgrade pre-commit | ||
pre-commit autoupdate | ||
uv pip compile --upgrade --generate-hashes \ | ||
--output-file requirements/main.txt requirements/main.in | ||
pip-compile --upgrade --resolver=backtracking --build-isolation \ | ||
--allow-unsafe --generate-hashes \ | ||
uv pip compile --upgrade --generate-hashes \ | ||
--output-file requirements/dev.txt requirements/dev.in | ||
uv pip compile --upgrade --generate-hashes \ | ||
--output-file requirements/tox.txt requirements/tox.in | ||
|
||
# Useful for testing against a Git version of Safir. | ||
.PHONY: update-deps-no-hashes | ||
update-deps-no-hashes: | ||
pip install --upgrade pip-tools pip setuptools | ||
pip-compile --upgrade --resolver=backtracking --build-isolation \ | ||
--allow-unsafe \ | ||
pip install --upgrade uv | ||
uv pip compile --upgrade \ | ||
--output-file requirements/main.txt requirements/main.in | ||
pip-compile --upgrade --resolver=backtracking --build-isolation \ | ||
--allow-unsafe \ | ||
uv pip compile --upgrade \ | ||
--output-file requirements/dev.txt requirements/dev.in | ||
|
||
.PHONY: init | ||
init: | ||
pip install --editable . | ||
pip install --upgrade -r requirements/main.txt -r requirements/dev.txt | ||
rm -rf .tox | ||
pip install --upgrade tox tox-docker | ||
pre-commit install | ||
|
||
.PHONY: update | ||
update: update-deps init | ||
uv pip compile --upgrade \ | ||
--output-file requirements/tox.txt requirements/tox.in |
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
Oops, something went wrong.