-
Notifications
You must be signed in to change notification settings - Fork 14
32 lines (30 loc) · 1.06 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: CI
on: [push, pull_request]
jobs:
build:
name: Build and test
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
env:
Z3_VERSION: "4.11.2"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install Z3
run: |
wget -nv https://github.com/Z3Prover/z3/releases/download/z3-${Z3_VERSION}/z3-${Z3_VERSION}-x64-glibc-2.31.zip
unzip z3-${Z3_VERSION}-x64-glibc-2.31.zip
echo `pwd`/z3-${Z3_VERSION}-x64-glibc-2.31/bin >> $GITHUB_PATH
echo PYTHONPATH=`pwd`/z3-${Z3_VERSION}-x64-glibc-2.31/bin/python >> $GITHUB_ENV
- run: z3 --version # make sure z3 is installed
- run: python3 -c 'import z3' # make sure z3 can be imported from python
- run: make gh-test