Skip to content

Commit

Permalink
[SymForce] Use uv for requirements
Browse files Browse the repository at this point in the history
Topic: sf-uv
  • Loading branch information
aaron-skydio committed May 17, 2024
1 parent 04ccac1 commit e044fe8
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 110 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/solve_requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Solve Pip Requirements

on:
workflow_dispatch:

jobs:
solve:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
py_version: [8, 9, 10, 11, 12]
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.${{ matrix.py_version }}'

- run: |
pip install uv
uv pip install -r dev_requirements_py3${{ matrix.py_version }}.txt
PYTHONPATH=$(pwd) python test/symforce_requirements_test.py --update --piptools_upgrade
- uses: actions/upload-artifact@v4
with:
path: dev_requirements_py3${{ matrix.py_version }}.txt

publish:
runs-on: ubuntu-latest
needs: solve
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
merge-multiple: true

- uses: peter-evans/create-pull-request@v6
with:
commit-message: Update Requirements
title: Update Requirements
body: ""
Loading

0 comments on commit e044fe8

Please sign in to comment.