Skip to content

Commit

Permalink
feat: Migrate to Python 3.10 (#324)
Browse files Browse the repository at this point in the history
As part of upgrading all our systems.
  • Loading branch information
jesse-c authored Sep 9, 2024
1 parent 560aacc commit 796690e
Show file tree
Hide file tree
Showing 4 changed files with 835 additions and 826 deletions.
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

0 comments on commit 796690e

Please sign in to comment.