|
44 | 44 | run: ./tools/license_check.sh |
45 | 45 |
|
46 | 46 | test-submit: |
47 | | - runs-on: ubuntu-latest |
48 | | - strategy: |
49 | | - matrix: |
50 | | - dry: [true, false] |
51 | | - repo: |
52 | | - - name: "ChipFlow/chipflow-examples" |
53 | | - design: "minimal" |
54 | | - env: |
55 | | - DRY: ${{ matrix.dry && '--dry-run' || '' }} |
56 | | - is_dry: ${{ matrix.dry && '(dry run)' || '' }} |
57 | | - our_path: "${{ github.workspace}}/${{ github.repo }}" |
58 | | - test_repo_path: "${{ github.workspace }}/${{ matrix.repo.name }}" |
59 | | - |
60 | | - name: ${{ matrix.dry && 'Test Submit - Dry run' || 'Test submit' }} |
61 | | - |
62 | | - steps: |
63 | | - - name: Check out source code |
64 | | - uses: actions/checkout@v4 |
65 | | - with: |
66 | | - path: ${{ env.our_path }} |
67 | | - |
68 | | - - name: Check out ${{ matrix.repo.name }} |
69 | | - uses: actions/checkout@v4 |
70 | | - with: |
71 | | - repository: ${{ matrix.repo.name }} |
72 | | - path: ${{ env.test_repo_path }} |
73 | | - |
74 | | - - name: Check for branch ${{ github.head_ref }} |
75 | | - working-directory: ${{ env.test_repo_path }} |
76 | | - if: github.event_name == 'pull_request' |
77 | | - run: | |
78 | | - git remote update |
79 | | - git checkout ${{ github.head_ref }} || echo "Falling back to main" |
80 | | -
|
81 | | - - name: Set up PDM |
82 | | - uses: pdm-project/setup-pdm@v4 |
83 | | - with: |
84 | | - python-version: '3.10' |
85 | | - cache: true |
86 | | - cache-dependency-path: './**/pyproject.toml' |
87 | | - |
88 | | - - name: Install dependencies with multirepo |
89 | | - uses: chipflow/pdm-multirepo@v1 |
90 | | - with: |
91 | | - working-directory: ${{ env.test_repo_path }} |
92 | | - |
93 | | - - name: Run tests |
94 | | - working-directory: ${{ env.test_repo_path }} |
95 | | - run: | |
96 | | - pdm test |
97 | | -
|
98 | | - - name: Submit build ${{ env.is_dry }} |
99 | | - working-directory: ${{ env.test_repo_path }}/${{ matrix.repo.design }} |
100 | | - run: | |
101 | | - pdm run chipflow pin lock |
102 | | - pdm run chipflow silicon submit --wait $DRY |
103 | | - env: |
104 | | - CHIPFLOW_API_KEY: ${{ secrets.CHIPFLOW_API_KEY}} |
| 47 | + uses: ./.github/workflows/test-examples.yml |
| 48 | + secrets: |
| 49 | + CHIPFLOW_API_KEY: ${{ secrets.CHIPFLOW_API_KEY}} |
0 commit comments