Skip to content

Commit fe50aac

Browse files
committed
update python version to match Heroku default
1 parent e701795 commit fe50aac

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

.github/workflows/main.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v3
1414

15-
- name: Set up Python 3.9
15+
# https://devcenter.heroku.com/articles/getting-started-with-python
16+
# Match version to Heroku app
17+
# Keep in sync with Dockerfile and Pipfile
18+
- name: Set up Python 3.10
1619
uses: actions/setup-python@v4
1720
with:
18-
python-version: 3.9
21+
python-version: 3.10
1922

2023
- name: Install pipenv
2124
run: |
@@ -69,10 +72,13 @@ jobs:
6972
- name: Check out repository code
7073
uses: actions/checkout@v3
7174

72-
- name: Set up Python 3.9
75+
# https://devcenter.heroku.com/articles/getting-started-with-python
76+
# Match version to Heroku app
77+
# Keep in sync with Dockerfile and Pipfile
78+
- name: Set up Python 3.10
7379
uses: actions/setup-python@v4
7480
with:
75-
python-version: 3.9
81+
python-version: 3.10
7682

7783
- name: Install pipenv
7884
run: |

Dockerfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# https://docs.docker.com/engine/reference/builder/
22

33
# https://hub.docker.com/_/python/
4-
FROM python:3.9-slim
4+
# https://devcenter.heroku.com/articles/getting-started-with-python
5+
# Match version to Heroku app
6+
# Keep in sync with .github/workflows/main.yml and Pipfile
7+
FROM python:3.10-slim
58

69
# Configure apt not to prompt during docker build
710
ARG DEBIAN_FRONTEND=noninteractive

Pipfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,7 @@ psycopg2 = "*"
2424
whitenoise = "*"
2525

2626
[requires]
27-
python_version = "3.9"
27+
# https://devcenter.heroku.com/articles/getting-started-with-python
28+
# Match version to Heroku app
29+
# Keep in sync with .github/workflows/main.yml and Dockerfile
30+
python_version = "3.10"

0 commit comments

Comments
 (0)