Skip to content

Commit

Permalink
Updated FastAPI job to use uv like upstream does
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Nov 30, 2024
1 parent df89ba9 commit b013f3e
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/test-downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,18 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python-version }}"
allow-prereleases: true
cache: pip
cache-dependency-path: |
requirements-tests.txt
- name: Setup uv
uses: astral-sh/setup-uv@v3
with:
version: "0.4.15"
enable-cache: true
cache-dependency-glob: |
requirements**.txt
pyproject.toml
- name: Install dependencies
run: |
pip install -r requirements-tests.txt
pip install anyio[trio]@git+https://github.com/agronholm/anyio.git@${{ github.ref_name }}
uv pip install -r requirements-tests.txt
uv pip install anyio[trio]@git+https://github.com/agronholm/anyio.git@${{ github.ref_name }}
- name: Run tests
run: pytest -W "ignore:Unclosed <MemoryObjectReceiveStream:ResourceWarning"
env:
Expand Down

0 comments on commit b013f3e

Please sign in to comment.