Skip to content

Commit ef61983

Browse files
committed
ci(build): Use uv to manage project dependencies
1 parent fed11dd commit ef61983

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,24 @@ jobs:
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727

28+
- name: Install uv
29+
uses: astral-sh/setup-uv@b5f58b2abc5763ade55e4e9d0fe52cd1ff7979ca # v5.2.1
30+
2831
- name: Install dependencies
2932
run: |
30-
python -m pip install --upgrade pip
31-
pip install -e ".[devel]"
33+
uv sync --extra everything --dev
3234
3335
- name: Lint with flake8
3436
run: |
35-
flake8 --count --show-source --statistics src/ tests/
37+
uv run flake8 --count --show-source --statistics src/ tests/
3638
3739
- name: Static code analysis with pylint
3840
run: |
39-
pylint src/ tests/
41+
uv run pylint src/ tests/
4042
4143
- name: Test with pytest
4244
run: |
43-
pytest --cov=powerapi --cov-report=term --cov-report=xml tests/unit
45+
uv run pytest --cov=powerapi --cov-report=term --cov-report=xml tests/unit
4446
4547
- name: Upload coverage reports to Codecov
4648
if: ${{ matrix.python-version }} == "3.10"

0 commit comments

Comments
 (0)