migrate to python 3.11
This commit is contained in:
parent
9be6b0f387
commit
7e7483c10b
2
.github/workflows/pylint.yml
vendored
2
.github/workflows/pylint.yml
vendored
@ -7,7 +7,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.7"]
|
||||
python-version: ["3.11"]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
|
2
.github/workflows/test-backend.yml
vendored
2
.github/workflows/test-backend.yml
vendored
@ -8,7 +8,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [3.7]
|
||||
python-version: [3.11]
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./backend
|
||||
|
@ -5,14 +5,14 @@ RUN npm install
|
||||
RUN npm run build
|
||||
# now we should have a dist folder containing the static website
|
||||
|
||||
FROM python:3.7.10-stretch as pybuilder
|
||||
FROM python:3.11.1-bullseye as pybuilder
|
||||
WORKDIR /code
|
||||
COPY ./backend /code/
|
||||
RUN pip install --user -r requirements.txt
|
||||
# We get the dependencies with the full python image so we can compile the one with missing binaries
|
||||
ENV UseRobots=false
|
||||
|
||||
FROM python:3.7.10-slim-stretch as app
|
||||
FROM python:3.11.1-slim-bullseye as app
|
||||
# copy the dependencies from the pybuilder
|
||||
COPY --from=pybuilder /root/.local /root/.local
|
||||
# copy the backend python files from the pybuilder
|
||||
|
Loading…
Reference in New Issue
Block a user