1- # Link repository with GitHub Actions
2- # https://docs.github.com/en/actions/learn-github-actions/introduction-to-github-actions
1+ name : Test
32
4- name : run-tests
53on :
64 push :
75 branches :
108 branches :
119 - main
1210
13- # Set the language, install dependencies, and run the tests
11+ env :
12+ NPY_PROMOTION_STATE : weak_and_warn
13+
1414jobs :
15- build :
16- runs-on : ${{ matrix.os }}
15+ test :
16+ name : Python ${{ matrix.python-version }} / ${{ matrix.os }} / ${{ matrix.numpy }}
1717 strategy :
18+ fail-fast : false
1819 matrix :
1920 os : [windows-latest, ubuntu-latest, macos-latest]
20- python-version : ["3.8", "3.9", "3.10", "3.11"]
21+ python-version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
22+ numpy : ["numpy"]
23+ include :
24+ - os : ubuntu-latest
25+ python-version : " 3.9"
26+ numpy : " numpy==1.26.4"
27+ runs-on : ${{ matrix.os }}
2128 steps :
2229 - uses : actions/checkout@v4
23- - name : Setup uv
24- uses : astral-sh/setup-uv@v3
30+ - uses : astral-sh/setup-uv@v3
2531 - name : Install Python ${{ matrix.python-version }}
2632 run : uv python install ${{ matrix.python-version }}
2733 - name : Install libsndfile
2834 if : startsWith(matrix.os, 'ubuntu')
29- run : |
30- sudo apt-get install -y libsndfile1
35+ run : sudo apt-get install -y libsndfile1
3136 - name : Run tests
32- run : uv run --extra dev pytest
33- - name : Check source code format
37+ run : uv run --with ${{ matrix.numpy }} -- extra dev pytest
38+ - name : Check style
3439 run : uv run --extra dev black --check --diff .
3540
3641 test-deb10-i386 :
42+ name : Python 3.7 on Debian 10 i386
3743 runs-on : ubuntu-latest
3844 container : i386/debian:10
3945 steps :
@@ -49,26 +55,11 @@ jobs:
4955 python3-soundfile \
5056 python3-pytest \
5157 git
52-
58+ python3 --version
5359 # Note: "actions/checkout@v2" requires libstdc++6:amd64 to be
5460 # installed in the container. To keep things simple, use
5561 # "actions/checkout@v1" instead.
5662 # https://github.com/actions/checkout/issues/334
5763 - uses : actions/checkout@v1
58-
5964 - name : Run tests
60- run : |
61- pytest-3
62-
63- build-documentation :
64- runs-on : ubuntu-20.04
65- steps :
66- - uses : actions/checkout@v3
67- - name : Install dependencies
68- run : |
69- python -m pip install --upgrade pip
70- pip install -r docs/requirements.txt
71- - name : Build documentation
72- run : |
73- cd docs
74- make html
65+ run : pytest-3
0 commit comments