From 26865279df5e419dd3211f9bb2f27faefa5acadf Mon Sep 17 00:00:00 2001 From: Mario Winkler <168550098+mario-winkler@users.noreply.github.com> Date: Fri, 18 Oct 2024 16:50:39 +0200 Subject: [PATCH] Update build-publish-image.yml --- .github/workflows/build-publish-image.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-publish-image.yml b/.github/workflows/build-publish-image.yml index f44dce8..40c30ac 100644 --- a/.github/workflows/build-publish-image.yml +++ b/.github/workflows/build-publish-image.yml @@ -8,7 +8,7 @@ on: branches: [ main ] jobs: check_project: - name: Code linting, format checking and testing + name: Code linting, format checking runs-on: ubuntu-latest steps: - name: Chechout project @@ -22,9 +22,7 @@ jobs: - name: Analyse code run: flake8 --max-line-length 120 --count --statistics src/ - name: Check code format - run: black --check --diff --color src/ - - name: Run tests - run: pytest + run: black --check --diff --color src/ push_to_registry: name: Build and push Docker image to Docker Hub runs-on: ubuntu-latest @@ -43,7 +41,10 @@ jobs: - name: Install dependencies run: python -m pip install --upgrade pip hatch - name: Determine harvester version - run: echo "HARVESTER_VERSION=$(hatch version)" >> $GITHUB_ENV + run: | + hatch version + echo "HARVESTER_VERSION=$(hatch version)" >> $GITHUB_ENV + echo $HARVESTER_VERSION - name: Build and push uses: docker/build-push-action@v6 with: