Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to update our CI and lock it down at the same time #3669

Draft
wants to merge 34 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-calitp-data-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- uses: google-github-actions/setup-gcloud@v2
- name: Run checks
run: |
curl -sSL https://install.python-poetry.org | python -
curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
poetry install
poetry run mypy .
poetry run pytest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-calitp-data-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- uses: google-github-actions/setup-gcloud@v2
- name: Run checks
run: |
curl -sSL https://install.python-poetry.org | python -
curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
poetry install
poetry run mypy .
poetry run pytest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-calitp-map-utils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
with:
python-version: '3.11'
- run: |
curl -sSL https://install.python-poetry.org | python -
curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
poetry install
poetry run mypy calitp_map_utils
poetry run pytest --spec
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-dask-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: curl -sSL https://install.python-poetry.org | python -
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
# from https://forcepush.tech/python-package-ci-cd-with-git-hub-actions
- name: Get image tag from version.txt
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-gtfs-aggregator-scraper-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: curl -sSL https://install.python-poetry.org | python -
python-version: '3.11'
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
- run: cd jobs/gtfs-aggregator-scraper && poetry install && poetry run mypy .

build_push:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-gtfs-rt-archiver-v3-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: curl -sSL https://install.python-poetry.org | python -
python-version: '3.11'
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
- run: cd services/gtfs-rt-archiver-v3 && poetry install && poetry run mypy .

build_push:
Expand All @@ -45,8 +45,8 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: curl -sSL https://install.python-poetry.org | python -
python-version: '3.11'
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
# from https://forcepush.tech/python-package-ci-cd-with-git-hub-actions
- name: Get image tag from pyproject.toml and commit SHA
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-gtfs-rt-parser-v2-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: curl -sSL https://install.python-poetry.org | python -
python-version: '3.11'
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
- run: cd jobs/gtfs-rt-parser-v2 && poetry install && poetry run mypy .

test:
Expand All @@ -39,8 +39,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: curl -sSL https://install.python-poetry.org | python -
python-version: '3.11'
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
- run: cd jobs/gtfs-rt-parser-v2 && poetry install && poetry run pytest

build_push:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-gtfs-schedule-validator-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: curl -sSL https://install.python-poetry.org | python -
python-version: '3.11'
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
- run: cd jobs/gtfs-schedule-validator && poetry install && poetry run mypy .

test:
Expand All @@ -37,8 +37,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: curl -sSL https://install.python-poetry.org | python -
python-version: '3.11'
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
- run: cd jobs/gtfs-schedule-validator && poetry install && poetry run pytest

build_push:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-jupyter-singleuser-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: curl -sSL https://install.python-poetry.org | python -
python-version: '3.11'
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
# from https://forcepush.tech/python-package-ci-cd-with-git-hub-actions
- name: Get image tag from pyproject.toml
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
with:
cluster_name: ${{ env.GKE_NAME }}
location: ${{ env.GKE_REGION }}
- run: curl -sSL https://install.python-poetry.org | python -
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
- name: Set up hologit
env:
BIO_RELEASE: 1.6.821
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview-kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
with:
cluster_name: ${{ env.GKE_NAME }}
location: ${{ env.GKE_REGION }}
- run: curl -sSL https://install.python-poetry.org | python -
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
- name: Set up hologit
env:
BIO_RELEASE: 1.6.821
Expand Down
2 changes: 1 addition & 1 deletion images/jupyter-singleuser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN mkdir $POETRY_HOME \

USER $NB_UID

RUN curl -sSL https://install.python-poetry.org | python3 -
RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
ENV PATH="$POETRY_HOME/bin:$PATH"
RUN npm install -g --unsafe-perm=true --allow-root netlify-cli
# RUN npm install -g --unsafe-perm=true --allow-root vega-cli # Can't get these to work
Expand Down
3 changes: 2 additions & 1 deletion jobs/gtfs-aggregator-scraper/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ FROM python:3.9

LABEL org.opencontainers.image.source https://github.com/cal-itp/data-infra

RUN curl -sSL https://install.python-poetry.org | python -
RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
ENV PATH="/root/.local/bin:${PATH}"
RUN poetry self add poetry-plugin-export@1.9.0

WORKDIR /app

Expand Down
Loading
Loading