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: