Rewrite #69
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' | |
on: | |
push: | |
pull_request: | |
schedule: # Run once a week to ensure tests pass with updated dependencies | |
- cron: '0 0 * * 6' | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: ['ubuntu'] | |
pyver: ['3.6', '3.7', '3.8', '3.9', '3.10'] | |
runs-on: ${{ matrix.os }}-latest | |
name: ${{ matrix.os }} | ${{ matrix.pyver }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Pull container images | |
run: | | |
docker pull hdlc/ghdl:yosys | |
docker pull hdlc/nextpnr:ice40 | |
docker pull hdlc/nextpnr:ecp5 | |
docker pull hdlc/icestorm | |
docker pull hdlc/prjtrellis | |
- name: Set up Python ${{ matrix.pyver }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.pyver }} | |
- name: Install dependencies | |
run: | | |
pip install pytest | |
pip install . | |
- name: Run test | |
run: pytest | |
- name: Run examples | |
run: | | |
cd examples; make MOCKS=1 |