From 9be6a0705272820ede1591e3e30d9baff01b2908 Mon Sep 17 00:00:00 2001 From: olofvndrhr Date: Thu, 1 Feb 2024 14:48:05 +0100 Subject: [PATCH] fix docker baseimage and CI errors --- .gitea/workflows/check_code.yml | 35 ++++++++++++++++++++++----------- docker/Dockerfile | 4 ++-- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/check_code.yml b/.gitea/workflows/check_code.yml index 8bedc85..38ec980 100644 --- a/.gitea/workflows/check_code.yml +++ b/.gitea/workflows/check_code.yml @@ -8,11 +8,6 @@ on: branches: [main, master] jobs: - check-code-py311: - uses: actions/workflows/.gitea/workflows/check_python_hatch.yml@master - with: - run-tests: true - scan-code-py311: uses: actions/workflows/.gitea/workflows/sonarqube_python.yml@master needs: [check-code] @@ -45,10 +40,10 @@ jobs: run: pip install -U hatch - name: test codestyle - run: hatch run lint:style + run: hatch run +py=3.8 lint:style - name: test typing - run: hatch run lint:typing + run: hatch run +py=3.8 lint:typing - name: run tests run: hatch run default:test @@ -63,10 +58,10 @@ jobs: run: pip install -U hatch - name: test codestyle - run: hatch run lint:style + run: hatch run +py=3.9 lint:style - name: test typing - run: hatch run lint:typing + run: hatch run +py=3.9 lint:typing - name: run tests run: hatch run default:test @@ -81,10 +76,28 @@ jobs: run: pip install -U hatch - name: test codestyle - run: hatch run lint:style + run: hatch run +py=3.10 lint:style - name: test typing - run: hatch run lint:typing + run: hatch run +py=3.10 lint:typing + + - name: run tests + run: hatch run default:test + + check-code-py311: + runs-on: python311 + steps: + - name: checkout code + uses: actions/checkout@v3 + + - name: install hatch + run: pip install -U hatch + + - name: test codestyle + run: hatch run +py=3.11 lint:style + + - name: test typing + run: hatch run +py=3.11 lint:typing - name: run tests run: hatch run default:test diff --git a/docker/Dockerfile b/docker/Dockerfile index 496f26b..ccc3cb0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM git.44net.ch/44net-services/python311:11 AS builder +FROM git.44net.ch/44net/python311:11 AS builder COPY pyproject.toml README.md /build/ COPY src /build/src @@ -8,7 +8,7 @@ RUN \ && pip3 install hatch hatchling \ && python3 -m hatch build --clean -FROM git.44net.ch/44net-services/debian-s6:11 +FROM git.44net.ch/44net/debian-s6:11 LABEL maintainer="Ivan Schaller" \ description="A CLI manga downloader"