Skip to content

Commit f578f7a

Browse files
committed
Commiting new github ci yml
1 parent 3594804 commit f578f7a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
uv run flake8 dataset/ model/ inference/ scripts/ tests/ --count --select=E9,F63,F7,F82 --show-source --statistics
41+
uv run python -m flake8 src/audio_processing_ai/ 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-
uv run flake8 dataset/ model/ inference/ scripts/ tests/ --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics
43+
uv run python -m flake8 src/audio_processing_ai/ tests/ --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics
4444
4545
- name: Type check with mypy
46-
run: uv run mypy dataset/ model/ inference/ scripts/ --ignore-missing-imports --no-error-summary
46+
run: uv run python -m mypy src/audio_processing_ai/ --ignore-missing-imports --no-error-summary
4747

4848
- name: Format check with black
49-
run: uv run black --check dataset/ model/ inference/ scripts/ tests/
49+
run: uv run python -m black --check src/audio_processing_ai/ tests/
5050

5151
- name: Import sort check with isort
52-
run: uv run isort --check-only dataset/ model/ inference/ scripts/ tests/
52+
run: uv run python -m isort --check-only src/audio_processing_ai/ tests/
5353

5454
- name: Test with pytest
55-
run: uv run pytest tests/ -v --cov=dataset --cov=model --cov=inference --cov-report=xml
55+
run: uv run python -m pytest tests/ -v --cov=src/audio_processing_ai --cov-report=xml
5656

5757
- name: Upload coverage to Codecov
5858
if: matrix.python-version == '3.9'
@@ -122,4 +122,4 @@ jobs:
122122
run: uv run python predict.py --help
123123

124124
- name: Test threshold_sweep.py import
125-
run: uv 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('src/audio_processing_ai/scripts'); import threshold_sweep; print('threshold_sweep imports successfully')"

0 commit comments

Comments
 (0)