add readthedocs configuration file #6
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: Regression Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
lint-flake8: | |
runs-on: ubuntu-latest | |
name: flake8 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.9] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{matrix.python-version}} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{matrix.python-version}} | |
- name: flake8 | |
continue-on-error: true | |
run: | | |
pip install flake8 | |
flake8 | |
tests: | |
name: Python ${{matrix.python-version}} | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.7', '3.8', '3.9', '3.10'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{matrix.python-version}} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{matrix.python-version}} | |
- name: Install Python testing dependencies | |
run: | | |
pip install tox tox-gh-actions | |
- name: Install Icarus Verilog | |
run: | | |
sudo apt install -y --no-install-recommends iverilog | |
- name: Test | |
run: | | |
tox |