Skip to content

Commit

Permalink
fix(ci): Install dependencies using uv
Browse files Browse the repository at this point in the history
This considerably speeds up the dependency installation in CI.
  • Loading branch information
AdrianoKF committed Aug 1, 2024
1 parent 9ba198a commit 8a4ca64
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/test-and-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,10 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: pip
cache-dependency-path: |
requirements-dev.txt
pyproject.toml
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
pip install -e . --no-deps
pip install -U uv
uv pip install --system --no-deps . -r requirements-dev.txt
- name: Cache pre-commit tools
uses: actions/cache@v4
with:
Expand All @@ -56,6 +52,7 @@ jobs:
python-version: "3.10"
- name: Run tests on oldest supported Python
run: |
pip install -r requirements-dev.txt
pip install -e . --no-deps
pip install -U uv
uv pip install --system -r requirements-dev.txt . --no-deps
uv pip install --system async-timeout tomli exceptiongroups # FIXME: This is required due to non-portable dependency resolution in uv pip compile
pytest

0 comments on commit 8a4ca64

Please sign in to comment.