Skip to content

Commit

Permalink
More printing of the halmos version
Browse files Browse the repository at this point in the history
Note: during CI builds, we only perform a sparse checkout so we expect the printed version to be slightly wonky, e.g. `halmos 0.1.dev1+g81b7ae5`

(base tag is wrong, number of commits ahead is wrong, but git hash is correct)

For released images, we expect the version string to be correct (e.g. `halmos 0.1.14`)
  • Loading branch information
karmacoma-eth committed Jul 19, 2024
1 parent 7fd8d43 commit ac2848e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish-halmos-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
- name: Build image
run: docker build . --file packages/halmos/Dockerfile --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}"

- name: Print halmos version
run: docker run $IMAGE_NAME --version

- name: Push image
run: |
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-external.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
submodules: recursive

- name: Print halmos version
run: docker run -v .:/workspace halmos-image --version
run: docker run halmos-image --version

- name: Test external repo
run: docker run -v .:/workspace halmos-image ${{ matrix.project.cmd }} --statistics --solver-timeout-assertion 0 --solver-threads 4 ${{ matrix.cache-solver }} ${{ inputs.halmos-options }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-ffi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
docker build -t halmos-image . --file packages/halmos/Dockerfile
- name: Print halmos version
run: docker run -v .:/workspace halmos-image --version
run: docker run halmos-image --version

- name: Run pytest
run: docker run -v .:/workspace --entrypoint pytest halmos-image -v tests/test_halmos.py -k ${{ matrix.testname }} --halmos-options="--ffi -v -st --solver-timeout-assertion 0"
2 changes: 1 addition & 1 deletion .github/workflows/test-long.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
docker build -t halmos-image . --file packages/halmos/Dockerfile
- name: Print halmos version
run: docker run -v .:/workspace halmos-image --version
run: docker run halmos-image --version

- name: Run pytest
run: |
Expand Down

0 comments on commit ac2848e

Please sign in to comment.