Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ on:
description: Args for `uv export` in the audit job.
type: string
default: ""
clean-env-from-lock:
description: >-
Install the locked runtime set (`uv export`) into the clean env before the wheel. For repos
whose engg-math dependencies are git sources because they are not yet on PyPI; drop once published.
type: boolean
default: false
forbid-ai-attribution:
description: Fail PRs whose commits or body carry AI attribution.
type: boolean
Expand Down Expand Up @@ -137,6 +143,10 @@ jobs:
- name: Wheels install and import in a clean env
run: |
uv venv --python 3.11 /tmp/clean-env
if [ "${{ inputs.clean-env-from-lock }}" = "true" ]; then
uv export --locked --no-dev --no-hashes --no-emit-project -o /tmp/clean-reqs.txt
uv pip install --python /tmp/clean-env/bin/python -r /tmp/clean-reqs.txt
fi
uv pip install --python /tmp/clean-env/bin/python dist/*.whl
/tmp/clean-env/bin/python -c "import importlib.metadata as m, sys; sys.exit(0 if any((d.metadata['Name'] or '').startswith('engg-math-') for d in m.distributions()) else 1)"

Expand Down
Loading