Repository navigation
49 lines (46 loc) · 1.38 KB
/
Copy pathtest.yml
File metadata and controls
49 lines (46 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Python ${{ matrix.python-version }} / ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
runs-on: ${{ matrix.os }}
timeout-minutes: 45
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v10.3.2
- name: Install Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install libsndfile
if: startsWith(matrix.os, 'ubuntu')
run: sudo apt-get install -y libsndfile1
- name: Run tests
env:
MPLBACKEND: Agg
run: uv run --python ${{ matrix.python-version }} pytest
# Make sure the lower bounds of the direct dependencies are actually usable
test-minimum:
name: Minimum dependency versions
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v10.3.2
- name: Install Python 3.11
run: uv python install 3.11
- name: Install libsndfile
run: sudo apt-get install -y libsndfile1
- name: Run tests
env:
MPLBACKEND: Agg
run: uv run --python 3.11 --resolution lowest-direct pytest