add intermediary halmos-builder image and dockerize more workflows #307
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test FFI | |
on: | |
push: | |
branches: [main, chore-workflows] | |
paths: | |
- .github/workflows/test-ffi.yml | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- testname: "tests/ffi" | |
steps: | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Build image | |
run: | | |
docker build -t halmos . --file packages/halmos/Dockerfile | |
- name: Run pytest | |
run: docker run -v .:/workspace --entrypoint pytest halmos -v tests/test_halmos.py -k ${{ matrix.testname }} --halmos-options="--ffi -v -st --solver-timeout-assertion 0" |