Update GitHub Actions to run the PyTest-based ASIC tests, and add the Python API test.
@@ -8,7 +8,7 @@ jobs:
- uses: actions/checkout@v2
- run: pip3 install -r $GITHUB_WORKSPACE/requirements.txt
- run: pip3 install -e $GITHUB_WORKSPACE/.
- - run: $GITHUB_WORKSPACE/examples/gcd/test.sh
+ - run: pytest $GITHUB_WORKSPACE/tests/asic/test_gcd.py
gcd_loopback_test:
runs-on: self-hosted
name: 'GCD "local server" test build'
@@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v2
- run: pip3 install -r $GITHUB_WORKSPACE/requirements.txt
- run: pip3 install -e $GITHUB_WORKSPACE/.
- - run: $GITHUB_WORKSPACE/examples/gcd/test_server.sh
+ - run: pytest $GITHUB_WORKSPACE/tests/asic/test_gcd_server.py
gcd_permutations_test:
runs-on: self-hosted
name: 'GCD test build with two permutations'
@@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v2
- run: pip3 install -r $GITHUB_WORKSPACE/requirements.txt
- run: pip3 install -e $GITHUB_WORKSPACE/.
- - run: $GITHUB_WORKSPACE/examples/gcd/test_permutations.sh
+ - run: pytest $GITHUB_WORKSPACE/tests/asic/test_gcd_perms.py
gcd_loopback_permutations_test:
runs-on: self-hosted
name: 'GCD "local server" test build with two permutations'
@@ -32,7 +32,15 @@ jobs:
- uses: actions/checkout@v2
- run: pip3 install -r $GITHUB_WORKSPACE/requirements.txt
- run: pip3 install -e $GITHUB_WORKSPACE/.
- - run: $GITHUB_WORKSPACE/examples/gcd/test_server_permutations.sh
+ - run: pytest $GITHUB_WORKSPACE/tests/asic/test_gcd_server_perms.py
+ gcd_python_api_test:
+ runs-on: self-hosted
+ name: 'GCD test build using the Python API (no shell calls)'
+ steps:
+ - uses: actions/checkout@v2
+ - run: pip3 install -r $GITHUB_WORKSPACE/requirements.txt
+ - run: pip3 install -e $GITHUB_WORKSPACE/.
+ - run: pytest $GITHUB_WORKSPACE/tests/asic/test_gcd_py.py
fpga_test_job:
runs-on: self-hosted
name: 'FPGA test builds'
