@@ -38,21 +38,21 @@ jobs:
3838 - name : Lint with flake8
3939 run : |
4040 # Stop the build if there are Python syntax errors or undefined names
41- flake8 dataset/ model/ inference/ scripts/ tests/ --count --select=E9,F63,F7,F82 --show-source --statistics
41+ uv run flake8 dataset/ model/ inference/ scripts/ tests/ --count --select=E9,F63,F7,F82 --show-source --statistics
4242 # Exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
43- flake8 dataset/ model/ inference/ scripts/ tests/ --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics
43+ uv run flake8 dataset/ model/ inference/ scripts/ tests/ --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics
4444
4545 - name : Type check with mypy
46- run : mypy dataset/ model/ inference/ scripts/ --ignore-missing-imports --no-error-summary
46+ run : uv run mypy dataset/ model/ inference/ scripts/ --ignore-missing-imports --no-error-summary
4747
4848 - name : Format check with black
49- run : black --check dataset/ model/ inference/ scripts/ tests/
49+ run : uv run black --check dataset/ model/ inference/ scripts/ tests/
5050
5151 - name : Import sort check with isort
52- run : isort --check-only dataset/ model/ inference/ scripts/ tests/
52+ run : uv run isort --check-only dataset/ model/ inference/ scripts/ tests/
5353
5454 - name : Test with pytest
55- run : pytest tests/ -v --cov=dataset --cov=model --cov=inference --cov-report=xml
55+ run : uv run pytest tests/ -v --cov=dataset --cov=model --cov=inference --cov-report=xml
5656
5757 - name : Upload coverage to Codecov
5858 if : matrix.python-version == '3.9'
@@ -116,10 +116,10 @@ jobs:
116116 run : uv pip install -e .
117117
118118 - name : Test train.py help
119- run : python train.py --help
119+ run : uv run python train.py --help
120120
121121 - name : Test predict.py help
122- run : python predict.py --help
122+ run : uv run python predict.py --help
123123
124124 - name : Test threshold_sweep.py import
125- run : python -c "import sys; sys.path.append('scripts'); import threshold_sweep; print('threshold_sweep imports successfully')"
125+ run : uv run python -c "import sys; sys.path.append('scripts'); import threshold_sweep; print('threshold_sweep imports successfully')"
0 commit comments