Skip to content

Commit

Permalink
2024-06-12 06:38 - updates ci:debug
Browse files Browse the repository at this point in the history
  • Loading branch information
saxix committed Jun 12, 2024
1 parent 7383c24 commit 36ffca4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 36ffca4

Please sign in to comment.