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