Skip to content

Commit

Permalink
build: switch to python 10
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Feb 12, 2024
1 parent 273f8fe commit d79724e
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 71 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
lint-backend:
uses: ./.github/workflows/python_task.yml
with:
python-version: '["3.9"]'
python-version: '["3.10"]'
command: poetry run pylint prophecies

test-backend:
uses: ./.github/workflows/python_task.yml
with:
python-version: '["3.9", "3.10"]'
python-version: '["3.10"]'
command: make test-back

test-frontend:
Expand All @@ -32,10 +32,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.9
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.10

- name: Install Poetry
uses: snok/install-poetry@v1
Expand All @@ -49,7 +49,7 @@ jobs:
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-3.9-${{ hashFiles('**/poetry.lock') }}
key: venv-${{ runner.os }}-3.10-${{ hashFiles('**/poetry.lock') }}

- name: Install Python dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python_task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
inputs:
python-version:
required: true
default: '["3.9"]'
default: '["3.10"]'
type: string
command:
required: true
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9 AS poetry
FROM python:3.10 AS poetry
FROM node:18 AS webpack

RUN mkdir /frontend/
Expand All @@ -9,7 +9,7 @@ RUN yarn config set network-timeout 300000
RUN yarn --non-interactive --production=false
RUN yarn build

FROM python:3.9
FROM python:3.10

ENV PYTHONUNBUFFERED 1
ENV PORT 8008
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ An ICIJ app to conduct data validation and cleaning.

Required:

* Python 3.9
* Python 3.10
* Node 16.x
* Poetry >= 1.2
* Yarn 1.x
Expand Down
64 changes: 3 additions & 61 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description = "An ICIJ app to conduct data validation and cleaning"
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.9"
python = "^3.10"
django = "==4.2.9"
djangorestframework = "^3.14.0"
django-cors-headers = "^4.3.1"
Expand Down

0 comments on commit d79724e

Please sign in to comment.