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

feat: Migrate to Python 3.10 #324

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
15 changes: 11 additions & 4 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,14 @@ jobs:
checks: write
# For repo checkout
contents: read
uses: climatepolicyradar/reusable-workflows/.github/workflows/python-precommit-validator.yml@v10
uses: climatepolicyradar/reusable-workflows/.github/workflows/python-precommit-validator.yml@v13
with:
# These ignores are different, since for some reason, the
# specific one isn't working on this field.
# trunk-ignore-all: Sometimes the Python version is split at .'s in Actions
python-version: "3.10"
# trunk-ignore(yamllint/quoted-strings): Sometimes the Python version is split at .'s in Actions
poetry-version: "1.8.2"

non-search-tests:
if: |
Expand All @@ -50,7 +57,7 @@ jobs:
run: cp .env.example .env

- name: Get python Container
run: docker pull python:3.9
run: docker pull python:3.10

- name: Build
run: |
Expand Down Expand Up @@ -92,7 +99,7 @@ jobs:
run: cp .env.example .env

- name: Get python Container
run: docker pull python:3.9
run: docker pull python:3.10

- name: Install latest Vespa CLI
env:
Expand Down Expand Up @@ -154,7 +161,7 @@ jobs:
run: cp .env.example .env

- name: Get python Container
run: docker pull python:3.9
run: docker pull python:3.10

- name: Build
run: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.10-slim

RUN mkdir /cpr-backend
WORKDIR /cpr-backend
Expand Down
Loading
Loading