Skip to content

Commit ed7f8fe

Browse files
committed
one last fix
1 parent e0c47b5 commit ed7f8fe

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

.github/workflows/build-python-release.reusable.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,6 @@ jobs:
6868
runs-on: ${{ matrix._.runs_on }}
6969
# See also https://github.com/mcrumiller/polars/.github/workflows/release-python.yml#L282
7070
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-
8871
- name: Setup build environment (ARM64 Windows)
8972
if: matrix._.target == 'aarch64-pc-windows-msvc'
9073
shell:
@@ -171,6 +154,23 @@ jobs:
171154
- name: Install uv
172155
uses: astral-sh/setup-uv@v6
173156

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+
174174
- name: Upload wheels
175175
uses: actions/upload-artifact@v4
176176
with:

0 commit comments

Comments
 (0)