Skip to content

Commit 49594f9

Browse files
committed
Add dry-run test of submit
1 parent 9a6b747 commit 49594f9

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/main.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,37 @@ jobs:
7878
CHIPFLOW_API_KEY_ID: ${{ secrets.CHIPFLOW_API_KEY_ID }}
7979
CHIPFLOW_API_KEY_SECRET: ${{ secrets.CHIPFLOW_API_KEY_SECRET }}
8080
CHIPFLOW_BACKEND_VERSION: b7afdbf
81+
82+
test-submit-dry:
83+
runs-on: ubuntu-latest
84+
steps:
85+
- name: Check out source code
86+
uses: actions/checkout@v4
87+
with:
88+
fetch-depth: 0
89+
path: chipflow-lib
90+
- name: Check out chipflow-examples
91+
uses: actions/checkout@v4
92+
with:
93+
repository: ChipFlow/chipflow-examples
94+
fetch-depth: 0
95+
path: chipflow-examples
96+
97+
- name: Set up PDM
98+
uses: pdm-project/setup-pdm@v4
99+
with:
100+
python-version: "3.10"
101+
cache: true
102+
cache-dependency-path: "./**/pyproject.toml"
103+
- name: Install dependencies
104+
working-directory: ./chipflow-examples
105+
run: |
106+
pdm install
107+
pdm run python -m ensurepip
108+
pdm run python -m pip install -e ../chipflow-lib
109+
- name: Run tests
110+
working-directory: ./chipflow-examples
111+
run: |
112+
pdm test
113+
pdm run chipflow pin lock
114+
pdm run chipflow silicon submit --dry-run

0 commit comments

Comments
 (0)