Skip to content

Commit

Permalink
fix: reset z3 solver objects (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
daejunpark authored Oct 10, 2024
1 parent 588744e commit 755f3f2
Show file tree
Hide file tree
Showing 10 changed files with 111 additions and 168 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-external.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
- name: Install Vyper
if: ${{ matrix.project.dir == 'snekmate' }}
run: |
docker run --name halmos-vyper --entrypoint uv halmos-image pip install vyper
docker run --name halmos-vyper --entrypoint uv halmos-image pip install git+https://github.com/vyperlang/vyper@master
docker commit --change 'ENTRYPOINT ["halmos"]' halmos-vyper halmos-image
- name: Checkout external repo
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:
matrix:
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
python-version: ["3.11", "3.12"]
parallel: ["", "--test-parallel"]
storage-layout: ["solidity", "generic"]
cache-solver: ["", "--cache-solver"]

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# note: it is faster to let foundry do a sparse checkout of the missing libraries rather than having the action do a git checkout of the submodules
submodules: false

- name: Install foundry
Expand All @@ -54,4 +54,4 @@ jobs:
run: python -m pip install -e .

- name: Run pytest
run: pytest -v -k "not long and not ffi" --ignore=tests/lib --halmos-options="-st ${{ matrix.parallel }} --solver-threads 1 --storage-layout ${{ matrix.storage-layout }} ${{ matrix.cache-solver }} --solver-timeout-assertion 0 ${{ inputs.halmos-options }}" ${{ inputs.pytest-options }}
run: pytest -v -k "not long and not ffi" --ignore=tests/lib --halmos-options="-st --disable-gc --solver-threads 1 --storage-layout ${{ matrix.storage-layout }} ${{ matrix.cache-solver }} --solver-timeout-assertion 0 ${{ inputs.halmos-options }}" ${{ inputs.pytest-options }}
1 change: 0 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
black
pre-commit
pytest
pytest-xdist
Loading

0 comments on commit 755f3f2

Please sign in to comment.