Run Python test with CI
@@ -20,3 +20,11 @@ jobs:
PATH="$HOME/OpenFPGA/openfpga:$PATH"
$GITHUB_WORKSPACE/examples/blinky/test.sh
$GITHUB_WORKSPACE/examples/and2_openfpga/test.sh
+ python_test_job:
+ runs-on: self-hosted
+ name: 'Python unit tests'
+ steps:
+ - uses: actions/checkout@v2
+ - run: pip3 install -r $GITHUB_WORKSPACE/requirements.txt
+ - run: pip3 install -e $GITHUB_WORKSPACE/.
+ - run: python3 -m unittest $GITHUB_WORKSPACE/siliconcompiler/test/test_core.py
