4 types: [opened, reopened, synchronize]
11 python-version: ['3.6', '3.7', '3.8', '3.9', pypy3]
13 - name: Check out source code
14 uses: actions/checkout@v2
18 uses: actions/setup-python@v2
20 python-version: ${{ matrix.python-version }}
21 - name: Install dependencies
23 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys FA8E1301F4D3932C
24 sudo add-apt-repository 'deb http://ppa.launchpad.net/sri-csl/formal-methods/ubuntu bionic main'
26 sudo apt-get install yices2
27 pip install setuptools setuptools_scm wheel coverage codecov yowasp-yosys nmigen-yosys
29 - name: Preserve wasmtime cache
30 uses: actions/cache@v1
32 path: ~/.cache/wasmtime
33 key: ${{ runner.os }}-wasmtime
36 export NMIGEN_USE_YOSYS=builtin YOSYS=yowasp-yosys SBY=yowasp-sby SMTBMC=yowasp-yosys-smtbmc
37 export PYTHONWARNINGS=error
38 python -m coverage run -m unittest
41 runs-on: ubuntu-latest
43 - name: Check out source code
44 uses: actions/checkout@v2
48 uses: actions/setup-python@v2
49 - name: Install dependencies
51 python -m pip install --upgrade setuptools setuptools_scm wheel
52 pip install -r docs/requirements.txt
54 - name: Build documentation
56 sphinx-build docs docs/_build
57 - name: Publish documentation
58 if: github.event_name == 'push' && github.event.ref == 'refs/heads/master'
59 uses: JamesIves/github-pages-deploy-action@releases/v3
61 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64 TARGET_FOLDER: latest/