Skip to content

Commit 7f4c53d

Browse files
committed
Add workflow for testing submit with chipflow examples
1 parent 776aa43 commit 7f4c53d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/main.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,39 @@ 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+
77+

0 commit comments

Comments
 (0)