Merge pull request #25 from t81dev/phase-16-17-hardening-dx-554350950… #17
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: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y iverilog verilator | |
| python -m pip install --upgrade pip | |
| pip install numpy setuptools pytest | |
| - name: Build all | |
| run: make all | |
| - name: Run Python tests | |
| run: | | |
| export PYTHONPATH=$PYTHONPATH:$(pwd)/src/pytfmbs | |
| pytest tests/ | |
| - name: Run Mock Llama check | |
| run: make run_mock_llama | |
| - name: Run Hardware simulation | |
| run: make run_sim |