Skip to content

Commit

Permalink
Update build-publish-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-winkler authored Oct 18, 2024
1 parent c9ea883 commit 2686527
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build-publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 2686527

Please sign in to comment.