Skip to content

Commit b2e16cb

Browse files
authored
feat: add Makefile target to test sample projects with gfp test (#172)
* feat: add test-gfp-projects Makefile target for sample project testing * fix: add sample-projects CI workflow from upstream template
1 parent 3ac801a commit b2e16cb

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Test Sample Projects
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches: [main]
6+
paths: ['*--sample-projects/**']
7+
pull_request:
8+
paths: ['*--sample-projects/**']
9+
10+
jobs:
11+
test-sample-projects:
12+
uses: doplaydo/pdk-ci-workflow/.github/workflows/test-sample-projects.yml@main
13+
secrets:
14+
GFP_API_KEY: ${{ secrets.GFP_API_KEY }}

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ test:
2121
test-force: install
2222
uv run pytest -s --force-regen
2323

24+
test-gfp-projects:
25+
cd ihp-gdsfactory--sample-projects/ihp--public--project && uv run --directory $(CURDIR) gfp test
26+
2427
git-rm-merged:
2528
git branch -D `git branch --merged | grep -v \* | xargs`
2629

0 commit comments

Comments
 (0)