Skip to content

Commit 9f582d4

Browse files
committed
Run tests on PR as well
1 parent 974783d commit 9f582d4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,16 +137,14 @@ jobs:
137137
name: ${{ steps.image-variables.outputs.tag }}
138138
path: ${{ steps.metadata.outputs.bake-file }}
139139
- name: Run tests
140-
# buildx does not support outputting the image so we need to pull it and run tests
141-
if: needs.version.outputs.push == 'true'
142140
run: |
143141
docker images
144142
# Test the pixi binary is available
145-
docker run --rm ghcr.io/prefix-dev/pixi:${{ needs.version.outputs.new-version }}-${{ steps.image-variables.outputs.tag }} pixi --version
143+
docker run --rm ${{ steps.build.outputs.digest }} pixi --version
146144
# Test end-to-end pixi workflow
147-
docker run --rm ghcr.io/prefix-dev/pixi:${{ needs.version.outputs.new-version }}-${{ steps.image-variables.outputs.tag }} sh -c "mkdir /app && cd /app && pixi init && pixi add python && pixi run python --version"
145+
docker run --rm ${{ steps.build.outputs.digest }} sh -c "mkdir /app && cd /app && pixi init && pixi add python && pixi run python --version"
148146
# Test pixi global binaries are in PATH
149-
docker run --rm ghcr.io/prefix-dev/pixi:${{ needs.version.outputs.new-version }}-${{ steps.image-variables.outputs.tag }} sh -c "pixi global install rsync && rsync --version"
147+
docker run --rm ${{ steps.build.outputs.digest }} sh -c "pixi global install rsync && rsync --version"
150148
- name: Image digest
151149
run: echo ${{ steps.build.outputs.digest }}
152150

0 commit comments

Comments
 (0)