From 36ffca48b5c304d6fcf74f0cafffacfa75bc145a Mon Sep 17 00:00:00 2001 From: sax Date: Wed, 12 Jun 2024 06:38:58 +0200 Subject: [PATCH] 2024-06-12 06:38 - updates ci:debug --- .github/workflows/_build.yml | 5 +++-- .github/workflows/test.yml | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/_build.yml b/.github/workflows/_build.yml index c72a4957..91d47bb7 100644 --- a/.github/workflows/_build.yml +++ b/.github/workflows/_build.yml @@ -72,13 +72,11 @@ jobs: echo "image=${tag%:*}" >> $GITHUB_OUTPUT - name: Setup Environment (PR) if: ${{ github.event_name == 'pull_request' }} -# shell: bash run: | SHA=${{ github.event.pull_request.head.sha }} echo "LAST_COMMIT_SHA=${SHA::7}" >> ${GITHUB_ENV} - name: Setup Environment (Push) if: ${{ github.event_name == 'push' }} -# shell: bash run: | echo "LAST_COMMIT_SHA=${GITHUB_SHA::7}" >> ${GITHUB_ENV} - run: | @@ -107,6 +105,9 @@ jobs: platforms: linux/amd64 driver: docker-container driver-opts: 'image=moby/buildkit:v0.13.2' + - if: ${{ steps.image_updated.outputs.updated != 'true' || inputs.force == 'true' }} + run: | + echo "::warning:: Build docker ${{ inputs.image }} - Checksum: ${{ steps.release_hash.outputs.hash }}" - name: Build and push if: ${{ steps.image_updated.outputs.updated != 'true' || inputs.force == 'true' }} uses: docker/build-push-action@v5 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ccebd389..8b6775a7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -94,6 +94,8 @@ jobs: POSTGRES_DATABASE: dedupe POSTGRES_PASSWORD: postgres POSTGRES_USERNAME: postgres + ports: + - 5432:5432 options: >- --health-cmd pg_isready --health-interval 10s @@ -114,7 +116,7 @@ jobs: -v $PWD:/code/app \ -w /code/app \ -t ${{needs.setup.outputs.image_name}} \ - pytest tests -v + pytest tests -v --maxfail=10 - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 with: