Add CI configuration for Github (on push / pull request) #2
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
on: [push, pull_request] | |
name: CI | |
jobs: | |
generation: | |
name: Generation | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Setup Python venv | |
run: | | |
python3 -m venv .venv | |
source .venv/bin/activate | |
python -V | |
pip install -r requirements.txt | |
- name: Test Generation | |
run: | | |
cd proto | |
python3 tests.py | |
interaction: | |
name: Generation | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install GHDL | |
run: sudo apt-get install ghdl | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Setup Python venv | |
run: | | |
python3 -m venv .venv | |
source .venv/bin/activate | |
python -V | |
pip install -r requirements.txt | |
- name: Test Generation | |
run: | | |
cd proto | |
python3 tests.py |