Skip to content

Commit ff9f090

Browse files
committed
add ci
1 parent 0b8047a commit ff9f090

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
7+
pull_request:
8+
branches: ["main"]
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
jobs:
14+
build-and-test:
15+
runs-on: ${{ matrix.os }}
16+
17+
strategy:
18+
matrix:
19+
os: [ubuntu-latest, windows-latest, macos-latest]
20+
python-version: ["3.12"]
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- name: Set up Python ${{ matrix.python-version }}
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
30+
- name: Upgrade pip
31+
run: python -m pip install --upgrade pip
32+
33+
- name: Install dependencies
34+
run: |
35+
python -m pip install uv
36+
python -m uv pip install --system .[dev]
37+
38+
# - name: Run linters
39+
# run: |
40+
# ruff check src/mel_cepstral_distance
41+
# ruff check src/mel_cepstral_distance_tests
42+
43+
# - name: Type checking
44+
# run: mypy
45+
46+
- name: Run tests
47+
run: |
48+
pytest -m "not repro and (not litert and not gpu)" -n auto
49+
pytest -m "not repro and litert" -n auto
50+
51+
- name: Test build
52+
run: |
53+
python -m build -o dist/
54+
python -m twine check dist/*

0 commit comments

Comments
 (0)