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 2686527 commit 8b63eba
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build-publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
name: Code linting, format checking
runs-on: ubuntu-latest
steps:
- name: Chechout project
- name: Checkout project
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: python -m pip install --upgrade pip flake8 black pytest
run: python -m pip install --upgrade pip flake8 black pytest hatch
- name: Analyse code
run: flake8 --max-line-length 120 --count --statistics src/
- name: Check code format
Expand All @@ -34,17 +34,19 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Checkout project
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.11'
- name: Install dependencies
run: python -m pip install --upgrade pip hatch
- name: Determine harvester version
run: |
hatch version
echo "HARVESTER_VERSION=$(hatch version)" >> $GITHUB_ENV
echo $HARVESTER_VERSION
echo $HARVESTER_VERSION
- name: Build and push
uses: docker/build-push-action@v6
with:
Expand Down

0 comments on commit 8b63eba

Please sign in to comment.