|
68 | 68 | runs-on: ${{ matrix._.runs_on }} |
69 | 69 | # See also https://github.com/mcrumiller/polars/.github/workflows/release-python.yml#L282 |
70 | 70 | steps: |
71 | | - - name: Test LICENSE packaging |
72 | | - if: matrix._.license_test != 'skip' |
73 | | - run: | |
74 | | - set -euo pipefail |
75 | | -
|
76 | | - mkdir -p ../python-license-test |
77 | | - cd ../python-license-test |
78 | | - uv init --bare --python 3.10 |
79 | | - uv add pip-licenses-cli |
80 | | - pwd |
81 | | - ls ../baml/engine/language_client_python/dist/ |
82 | | - uv pip install $(ls ../baml/engine/language_client_python/dist/*.whl) |
83 | | - uv run pip-licenses | tee license-audit.log |
84 | | -
|
85 | | - # Due to `set -e`, this will fail if no matches are found |
86 | | - grep 'baml.*Apache-2.0' license-audit.log |
87 | | -
|
88 | 71 | - name: Setup build environment (ARM64 Windows) |
89 | 72 | if: matrix._.target == 'aarch64-pc-windows-msvc' |
90 | 73 | shell: |
@@ -171,6 +154,23 @@ jobs: |
171 | 154 | - name: Install uv |
172 | 155 | uses: astral-sh/setup-uv@v6 |
173 | 156 |
|
| 157 | + - name: Test LICENSE packaging |
| 158 | + if: matrix._.license_test != 'skip' |
| 159 | + run: | |
| 160 | + set -euo pipefail |
| 161 | +
|
| 162 | + mkdir -p ../python-license-test |
| 163 | + cd ../python-license-test |
| 164 | + uv init --bare --python 3.10 |
| 165 | + uv add pip-licenses-cli |
| 166 | + pwd |
| 167 | + ls ../baml/engine/language_client_python/dist/ |
| 168 | + uv pip install $(ls ../baml/engine/language_client_python/dist/*.whl) |
| 169 | + uv run pip-licenses | tee license-audit.log |
| 170 | +
|
| 171 | + # Due to `set -e`, this will fail if no matches are found |
| 172 | + grep 'baml.*Apache-2.0' license-audit.log >/dev/null |
| 173 | +
|
174 | 174 | - name: Upload wheels |
175 | 175 | uses: actions/upload-artifact@v4 |
176 | 176 | with: |
|
0 commit comments