Make requirements fast with uv #105
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Make requirements files | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- "pyproject.toml" | |
jobs: | |
make-requirements: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up UV | |
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2 | |
with: | |
python-version-file: "pyproject.toml" | |
version: "0.6.14" | |
- name: Generate lockfile and requirements files | |
shell: bash | |
run: | | |
rm -r requirements/ | |
make sync-reqs-files | |
- name: Commit and push | |
uses: stefanzweifel/git-auto-commit-action@b863ae1933cb653a53c021fe36dbb774e1fb9403 # v5.2.0 | |
with: | |
commit_message: Update lockfile and requirements files |