Skip to content

Commit

Permalink
Update uv's output when it gets bumped in autodeps (#3069)
Browse files Browse the repository at this point in the history
  • Loading branch information
A5rocks authored Aug 22, 2024
1 parent 50e09c0 commit 6f614ec
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/autodeps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,35 @@ jobs:
issues: write
repository-projects: write
contents: write

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.8"

- name: Bump dependencies
run: |
python -m pip install -U pip pre-commit
python -m pip install -r test-requirements.txt
uv pip compile --universal --python-version=3.8 --upgrade test-requirements.in -o test-requirements.txt
uv pip compile --universal --python-version=3.8 --upgrade docs-requirements.in -o docs-requirements.txt
pre-commit autoupdate --jobs 0
- name: Install new requirements
run: python -m pip install -r test-requirements.txt

# apply newer versions' formatting
- name: Black
run: black src/trio

- name: uv
run: |
# The new dependencies may contain a new black version.
# Commit any changes immediately.
python -m pip install -r test-requirements.txt
black src/trio
uv pip compile --universal --python-version=3.8 test-requirements.in -o test-requirements.txt
uv pip compile --universal --python-version=3.8 docs-requirements.in -o docs-requirements.txt
- name: Commit changes and create automerge PR
env:
GH_TOKEN: ${{ github.token }}
Expand Down

0 comments on commit 6f614ec

Please sign in to comment.