Skip to content

Commit 4650b82

Browse files
committed
update ci
1 parent 7da0fc0 commit 4650b82

2 files changed

Lines changed: 3 additions & 80 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -58,89 +58,11 @@ jobs:
5858
with:
5959
python-version: ${{ matrix.python-version }}
6060

61-
- name: Upgrade pip
62-
run: python -m pip install --upgrade pip
63-
6461
- name: Install dependencies
6562
run: |
6663
python -m pip install uv --upgrade
67-
python -m uv pip install twine build --upgrade
6864
python -m uv pip install --system .[tests]
6965
70-
# - name: Run linters
71-
# run: |
72-
# ruff check src/birdnet
73-
# ruff check src/birdnet_tests
74-
75-
# - name: Type checking
76-
# run: mypy
77-
78-
- name: Download models
79-
run: |
80-
pytest -m "not repro and load_model" -n auto
81-
82-
- name: Run standard tests
83-
run: |
84-
pytest -m "not repro and not load_model and (not litert and not gpu)" -n auto
85-
86-
- name: Run LiteRT tests
87-
run: |
88-
pytest -m "not repro and not load_model and litert" -n auto
89-
90-
- name: Test build
91-
run: |
92-
python -m build -o dist/
93-
python -m twine check dist/*
94-
95-
build-and-test-repro:
96-
runs-on: ${{ matrix.os }}
97-
98-
strategy:
99-
matrix:
100-
os:
101-
# repro without Intel macOS because TF >=2.17 is not supported there
102-
[ubuntu-slim, ubuntu-24.04, ubuntu-24.04-arm, macos-15, windows-2025]
103-
python-version: ["3.12"]
104-
105-
steps:
106-
- uses: actions/checkout@v4
107-
108-
- name: Install audio system libs (Linux)
109-
if: startsWith(matrix.os, 'ubuntu')
110-
run: |
111-
sudo apt-get update
112-
sudo apt-get install -y libsndfile1
113-
114-
- name: Install audio system libs (macOS)
115-
if: startsWith(matrix.os, 'macos')
116-
run: |
117-
brew update
118-
brew install libsndfile
119-
120-
- name: Install audio system libs (Windows)
121-
if: startsWith(matrix.os, 'windows')
122-
run: |
123-
choco install libsndfile
124-
125-
- name: Set up Python ${{ matrix.python-version }}
126-
uses: actions/setup-python@v5
127-
with:
128-
python-version: ${{ matrix.python-version }}
129-
130-
- name: Upgrade pip
131-
run: python -m pip install --upgrade pip
132-
133-
- name: Install dependencies
134-
run: |
135-
python -m pip install uv --upgrade
136-
python -m uv pip install twine build --upgrade
137-
python -m uv pip install --system .[tests,repro]
138-
139-
- name: Run tests
140-
run: |
141-
python -m tox -e py312-repro
142-
143-
- name: Test build
66+
- name: Run available tests for current configuration
14467
run: |
145-
python -m build -o dist/
146-
python -m twine check dist/*
68+
python -m tox

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ deps =
236236
commands =
237237
# ruff check src/birdnet
238238
# ruff check src/birdnet_tests
239+
# mypy src/birdnet
239240
pytest -m "not repro and load_model" -n auto
240241
pytest -m "not repro and not load_model and (not litert and not gpu)" -n auto
241242
pytest -m "not repro and not load_model and litert" -n auto

0 commit comments

Comments
 (0)