| 1 |
name: Run Tests |
| 2 |
on: |
| 3 |
- push |
| 4 |
- workflow_dispatch |
| 5 |
|
| 6 |
permissions: {} |
| 7 |
|
| 8 |
jobs: |
| 9 |
test: |
| 10 |
runs-on: ubuntu-latest |
| 11 |
steps: |
| 12 |
- name: Checkout |
| 13 |
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # was: actions/checkout@v6 |
| 14 |
- name: Install |
| 15 |
run: | |
| 16 |
sudo apt-get install sox ninja-build |
| 17 |
- name: Build |
| 18 |
run: | |
| 19 |
cmake -S. -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug |
| 20 |
cmake --build build |
| 21 |
- name: Run tests |
| 22 |
run: | |
| 23 |
cmake --build build --target check |
| 24 |
test-fixed: |
| 25 |
runs-on: ubuntu-latest |
| 26 |
steps: |
| 27 |
- name: Checkout |
| 28 |
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # was: actions/checkout@v6 |
| 29 |
- name: Install |
| 30 |
run: | |
| 31 |
sudo apt-get install sox ninja-build |
| 32 |
- name: Build |
| 33 |
run: | |
| 34 |
cmake -S. -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DFIXED_POINT=ON |
| 35 |
cmake --build build |
| 36 |
- name: Run tests |
| 37 |
run: | |
| 38 |
cmake --build build --target check |
| 39 |
python-tests: |
| 40 |
name: test with ${{ matrix.py }} on ${{ matrix.os }} |
| 41 |
runs-on: ${{ matrix.os }} |
| 42 |
strategy: |
| 43 |
fail-fast: true |
| 44 |
matrix: |
| 45 |
py: |
| 46 |
- "3.14" |
| 47 |
- "3.8" |
| 48 |
os: |
| 49 |
- ubuntu-latest |
| 50 |
- ubuntu-24.04-arm |
| 51 |
- macos-latest |
| 52 |
- windows-latest |
| 53 |
steps: |
| 54 |
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # was: actions/checkout@v6 |
| 55 |
- name: Setup python for test ${{ matrix.py }} |
| 56 |
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # was: actions/setup-python@v6 |
| 57 |
with: |
| 58 |
python-version: ${{ matrix.py }} |
| 59 |
- name: Install sox |
| 60 |
if: ${{ startsWith(matrix.os, 'ubuntu') }} |
| 61 |
run: sudo apt-get install sox |
| 62 |
- name: Install pytest |
| 63 |
run: | |
| 64 |
python -m pip install --upgrade pip |
| 65 |
python -m pip install pytest memory_profiler |
| 66 |
python -m pip install . |
| 67 |
- name: Run tests |
| 68 |
run: pytest |
| 69 |
pytest-editable: |
| 70 |
runs-on: ubuntu-latest |
| 71 |
steps: |
| 72 |
- name: Checkout |
| 73 |
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # was: actions/checkout@v6 |
| 74 |
- name: Install |
| 75 |
run: | |
| 76 |
sudo apt-get install sox |
| 77 |
python -m pip install --upgrade pip |
| 78 |
pip install pytest memory_profiler |
| 79 |
pip install -e . |
| 80 |
- name: Run tests |
| 81 |
run: pytest |