Skip to content

Commit 162078d

Browse files
authored
feat: use python 3.11 (#35)
* feat: use python 3.11 * ci: use release candidate version for github actions
1 parent ecaae2a commit 162078d

File tree

5 files changed

+86
-115
lines changed

5 files changed

+86
-115
lines changed

.github/workflows/lint-and-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ jobs:
3333
- uses: actions/cache@v3
3434
with:
3535
path: ~/.cache
36-
key: self-runner-${{ runner.os }}-python-3.10-poetry-${{ hashFiles('poetry.lock') }}-precommit-${{ hashFiles('.pre-commit-config.yaml') }}
37-
- name: Set up Python 3.10.7
36+
key: self-runner-${{ runner.os }}-python-3.11-poetry-${{ hashFiles('poetry.lock') }}-precommit-${{ hashFiles('.pre-commit-config.yaml') }}
37+
- name: Set up Python 3.11.0
3838
uses: actions/setup-python@v4
3939
with:
40-
python-version: 3.10.7
40+
python-version: 3.11.0-rc.2
4141
- name: Install dependencies
4242
run: |
4343
cp env.sample .env

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232
- uses: actions/cache@v3
3333
with:
3434
path: ~/.cache
35-
key: self-runner-${{ runner.os }}-python-3.10-poetry-${{ hashFiles('poetry.lock') }}-precommit-${{ hashFiles('.pre-commit-config.yaml') }}
36-
- name: Set up Python 3.10.7
35+
key: self-runner-${{ runner.os }}-python-3.11-poetry-${{ hashFiles('poetry.lock') }}-precommit-${{ hashFiles('.pre-commit-config.yaml') }}
36+
- name: Set up Python 3.11.0
3737
uses: actions/setup-python@v4
3838
with:
39-
python-version: 3.10.7
39+
python-version: 3.11.0-rc.2
4040
- name: Install dependencies
4141
run: |
4242
cp env.sample .env

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
##### Builder Stage #####
2-
FROM python:3.10-slim as builder
2+
FROM python:3.11-slim as builder
33

44
# Set default path
55
ENV PATH="/app/.venv/bin:${PATH}"
@@ -20,7 +20,7 @@ COPY fastqueue ./fastqueue
2020
COPY alembic ./alembic
2121

2222
##### Final Stage #####
23-
FROM python:3.10-slim
23+
FROM python:3.11-slim
2424

2525
# Disable Prompt During Packages Installation
2626
ARG DEBIAN_FRONTEND=noninteractive

0 commit comments

Comments
 (0)