From bedc0497ca18969ada4196d48d23f0cb85d9b627 Mon Sep 17 00:00:00 2001 From: NetKAN inflator Robot Date: Sat, 16 Dec 2023 01:34:46 +0000 Subject: [PATCH] Update to Python 3.11 --- .github/workflows/coverage.yml | 2 +- .github/workflows/deploy.yml | 4 ++-- .github/workflows/test.yml | 2 +- netkan/Dockerfile | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 525b8dcd..f6dd7ddf 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -18,7 +18,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v1 with: - python-version: 3.7 + python-version: 3.11 - name: Install test dependencies run: pip install .[test] - name: force our git config diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5c54c10c..30f3b723 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -62,10 +62,10 @@ jobs: needs: [ 'build', 'webhooks' ] steps: - uses: actions/checkout@v4 - - name: Set up Python 3.7 + - name: Set up Python uses: actions/setup-python@v1 with: - python-version: 3.7 + python-version: 3.11 - name: Install Dependencies run: | pip install netkan/. diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4daca6ac..122d6eda 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v1 with: - python-version: 3.7 + python-version: 3.11 - name: Install test dependencies working-directory: netkan run: pip install .[test] diff --git a/netkan/Dockerfile b/netkan/Dockerfile index 7527422b..c4827902 100644 --- a/netkan/Dockerfile +++ b/netkan/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.7 as base +FROM python:3.11 as base RUN useradd -ms /bin/bash netkan ADD . /netkan WORKDIR /netkan @@ -7,7 +7,7 @@ RUN chown -R netkan:netkan /netkan USER netkan RUN pip install --user . --no-warn-script-location -FROM python:3.7 as production +FROM python:3.11 as production COPY --from=base /home/netkan /home/netkan RUN useradd -Ms /bin/bash netkan RUN chown -R netkan:netkan /home/netkan