Skip to content

Commit d7408c1

Browse files
committed
Add workflow for testing submit with chipflow examples
1 parent 0154439 commit d7408c1

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/main.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,44 @@ jobs:
3939
- name: Check source code licenses
4040
run: |
4141
docker run --platform=linux/amd64 -v ${PWD}:/src ghcr.io/google/addlicense -v -check -l BSD-2-Clause -c "ChipFlow" -s=only -ignore **/__init__.py **/*.py
42+
43+
test-submit:
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: Check out source code
47+
uses: actions/checkout@v4
48+
with:
49+
fetch-depth: 0
50+
path: chipflow-lib
51+
- name: Check out chipflow-examples
52+
uses: actions/checkout@v4
53+
with:
54+
repository: ChipFlow/chipflow-examples
55+
fetch-depth: 0
56+
path: chipflow-examples
57+
58+
- name: Set up PDM
59+
uses: pdm-project/setup-pdm@v4
60+
with:
61+
python-version: "3.10"
62+
cache: true
63+
cache-dependency-path: "./**/pyproject.toml"
64+
- name: Install dependencies
65+
working-directory: ./chipflow-examples
66+
run: |
67+
pdm install
68+
pdm run python -m ensurepip
69+
pdm run python -m pip install -e ../chipflow-lib
70+
- name: Run tests
71+
working-directory: ./chipflow-examples
72+
run: |
73+
pdm test
74+
pdm run chipflow pin lock
75+
pdm run chipflow silicon submit
76+
env:
77+
CHIPFLOW_API_ENDPOINT: 'https://build-staging.chipflow.org/build/submit'
78+
CHIPFLOW_API_KEY_ID: ${{ secrets.CHIPFLOW_API_KEY_ID }}
79+
CHIPFLOW_API_KEY_SECRET: ${{ secrets.CHIPFLOW_API_KEY_SECRET }}
80+
81+
82+

0 commit comments

Comments
 (0)