Skip to content

Commit

Permalink
.github/workflows/build.yml (test-new): Do not push and do not start …
Browse files Browse the repository at this point in the history
…container if nothing to be tested
  • Loading branch information
Matthias Koeppe committed Jun 3, 2024
1 parent dae0ff1 commit 609e12f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ jobs:
# more reliable than "load", for which we observed random failure
# conditions in which the built image could not be found.
#
push: true
push: ${{ steps.changed-files.outputs.doctests_all_changed_files && true }}
load: false
context: .
tags: ${{ env.BUILD_IMAGE }}
Expand All @@ -198,6 +198,7 @@ jobs:
TARGETS=${{ steps.build-targets.outputs.build_targets }}
- name: Start container
if: steps.changed-files.outputs.doctests_all_changed_files
run: |
docker run --name BUILD -dit \
--mount type=bind,src=$(pwd),dst=$(pwd) \
Expand All @@ -207,6 +208,7 @@ jobs:
# Testing

- name: Check that all modules can be imported
if: steps.changed-files.outputs.doctests_all_changed_files
run: |
# Increase the length of the lines in the "short summary"
export COLUMNS=120
Expand Down

0 comments on commit 609e12f

Please sign in to comment.