-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (49 loc) · 1.57 KB
/
python-package-multi-threading.yml
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
50
51
52
53
name: Python Package with multi-threading
on:
pull_request:
branches: [main]
types: [synchronize, opened, reopened, ready_for_review]
jobs:
build-and-test:
name: Test on ${{ matrix.os }} - Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install WavPack (ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
WAVPACK_LATEST_VERSION="$(cat ./.github/wavpack_latest_version.txt)"
chmod +x ./.github/scripts/install-wavpack-linux.sh
./.github/scripts/install-wavpack-linux.sh $WAVPACK_LATEST_VERSION
# check libraries
ls /usr/local/lib/ | grep wavpack
- name: Set up Homebrew (macos)
if: matrix.os == 'macos-latest'
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Install WavPack (macos)
if: matrix.os == 'macos-latest'
run: |
brew install wavpack
# check version
brew info wavpack
- name: Python version
run: |
which python
- name: Install dependencies
run: |
pip install .[test]
- name: Test imports and version
run: |
pytest -s tests/test_imports.py
- name: Test with pytest
run: |
pytest -v