ci: Switch to pytest. #167
This file contains hidden or 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: ci | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| # Checkout Repository | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| # Install Tools | |
| - name: Install Tools | |
| run: | | |
| sudo apt-get install wget build-essential | |
| - name: Set up Python 3.9 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.9" | |
| cache: "pip" | |
| cache-dependency-path: "setup.py" | |
| - name: Install Python dependencies | |
| run: | | |
| python3 -m pip install setuptools pytest | |
| # Install (n)Migen / LiteX / Cores | |
| - name: Install LiteX | |
| run: | | |
| wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py | |
| python3 litex_setup.py init install --user | |
| # Install Project | |
| - name: Install Project | |
| run: python3 setup.py develop --user | |
| # Test | |
| - name: Run Tests | |
| run: python3 -m pytest -v |