update CI to mirror other demo CI #1
Workflow file for this run
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: Regression | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
pytest: | |
name: Run ebrick-fpga CAD flow tests | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/siliconcompiler/sc_runner:latest | |
env: | |
GIT_TOKEN: ${{ secrets.ZA_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup git access | |
run: | | |
git config --global --add url."https://github.com/".insteadOf git@github.com: | |
- name: Setup python | |
run: | | |
python3 -m venv --system-site-packages .efpga | |
. .efpga/bin/activate | |
python3 -m pip install --upgrade pip | |
pip3 install -e .[test] | |
- name: Run tests | |
run: | | |
. .efpga/bin/activate | |
pytest |