File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,24 +22,25 @@ jobs:
2222 cache-dependency-glob : " pyproject.toml"
2323
2424 - name : Set up Python ${{ matrix.python-version }}
25- run : uv python install ${{ matrix.python-version }}
25+ run : |
26+ uv python install ${{ matrix.python-version }}
27+ uv venv
2628
2729 - name : Install dependencies
2830 run : |
29- uv pip install --system - e .
30- uv pip install --system pytest pytest-cov
31+ uv pip install -e .
32+ uv pip install pytest pytest-cov flake8
3133
3234 - name : Lint with flake8
3335 run : |
34- uv pip install --system flake8
3536 # stop the build if there are Python syntax errors or undefined names
36- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
37+ uv run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3738 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
38- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
39+ uv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3940
4041 - name : Test with pytest
4142 run : |
42- pytest --cov=allocator --cov-report=xml --cov-report=term-missing -v
43+ uv run pytest --cov=allocator --cov-report=xml --cov-report=term-missing -v
4344
4445 - name : Upload coverage to Codecov
4546 uses : codecov/codecov-action@v4
You can’t perform that action at this time.
0 commit comments