update build.yml for autotest #16
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: Build the project | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone the repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Build the code | |
run: | | |
sudo apt install -y build-essential python-is-python3 | |
make | |
- name: Run unit test | |
run: | | |
pip install pytest | |
pytest pyTestC.py || exit 1 |