Skip to content

Commit e701795

Browse files
committed
update GitHub Actions package versions, PostgreSQL image version, and Pyton version
1 parent 9091222 commit e701795

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

.github/workflows/main.yml

+20-13
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@ jobs:
1010
lint:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414

15-
- name: Set up Python 3.7
16-
uses: actions/setup-python@v1
15+
- name: Set up Python 3.9
16+
uses: actions/setup-python@v4
1717
with:
18-
python-version: 3.7
18+
python-version: 3.9
1919

2020
- name: Install pipenv
21-
uses: dschep/install-pipenv-action@v1
21+
run: |
22+
pip install --upgrade pip
23+
pip install pipenv
2224
2325
- name: Install dependencies
2426
run: |
@@ -34,7 +36,7 @@ jobs:
3436
pipenv run flake8 . --output-file test-reports/flake8
3537
3638
- name: Upload flake test results
37-
uses: actions/upload-artifact@master
39+
uses: actions/upload-artifact@v3
3840
with:
3941
name: flake8-report
4042
path: test-reports/flake8
@@ -46,7 +48,10 @@ jobs:
4648

4749
services:
4850
postgres:
49-
image: postgres:12.5-alpine
51+
# https://hub.docker.com/_/postgres
52+
# https://devcenter.heroku.com/articles/heroku-postgresql#version-support
53+
# Match version to Heroku app. Keep in sync with docker-compose.yml
54+
image: postgres:14-alpine
5055
env:
5156
POSTGRES_USER: postgres
5257
POSTGRES_PASSWORD: postgres
@@ -62,15 +67,17 @@ jobs:
6267
6368
steps:
6469
- name: Check out repository code
65-
uses: actions/checkout@v2
70+
uses: actions/checkout@v3
6671

67-
- name: Set up Python 3.7
68-
uses: actions/setup-python@v1
72+
- name: Set up Python 3.9
73+
uses: actions/setup-python@v4
6974
with:
70-
python-version: 3.7
75+
python-version: 3.9
7176

72-
- name: Install pipenv
73-
uses: dschep/install-pipenv-action@v1
77+
- name: Install pipenv
78+
run: |
79+
pip install --upgrade pip
80+
pip install pipenv
7481
7582
- name: Install dependencies
7683
run: |

docker-compose.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ services:
3030
- POSTGRES_USER=${DJANGO_DATABASE_USER}
3131
- POSTGRES_PASSWORD=${DJANGO_DATABASE_PASSWORD:-postgres}
3232
# https://hub.docker.com/_/postgres
33-
# Match version to Heroku app
34-
image: postgres:12.9-alpine
33+
# https://devcenter.heroku.com/articles/heroku-postgresql#version-support
34+
# Match version to Heroku app. Keep in sync with .github/workflows/main.yml
35+
image: postgres:14-alpine
3536
restart: always
3637
volumes:
3738
- ./tmp/pgdata/:/var/lib/postgresql/data

0 commit comments

Comments
 (0)