Skip to content

Commit

Permalink
Merge pull request #163 from michael-kuhlmann/master
Browse files Browse the repository at this point in the history
Update CI setup, fix for torch.load and additions to contrib
  • Loading branch information
michael-kuhlmann authored Jan 31, 2025
2 parents ceb20be + 97ad14f commit f5c91a1
Show file tree
Hide file tree
Showing 6 changed files with 695 additions and 18 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,21 @@ on:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # Let other jobs keep running even if one fails
matrix:
python-version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12']
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
os: [ubuntu-latest]
include:
- os: ubuntu-22.04
python-version: 3.7
- os: macos-latest
python-version: "3.12"

env:
TMPDIR: /private/tmp # Default TMPDIR on macOS is /var which pathlib.Path resolves to /private/var
if: matrix.os == 'macos-latest'
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -23,6 +33,12 @@ jobs:
- name: Install linux dependencies
run: |
sudo apt-get install libsndfile1
if: matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-22.04'
- name: Install macos dependencies
run: |
brew install libsndfile
echo $TMPDIR
if: matrix.os == 'macos-latest'
- name: Install python dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
Expand All @@ -36,9 +52,14 @@ jobs:
#flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
#flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
- name: Run unittest and doctest on Ubuntu
run: |
pytest -v "tests/" "padertorch/"
if: matrix.os != 'macos-latest'
- name: Run unittest on macOS # Some doctests fail because numeric precision is too high on macOS
run: |
pytest -v "tests/"
if: matrix.os == 'macos-latest'
- name: Codecov
run: |
codecov
Loading

0 comments on commit f5c91a1

Please sign in to comment.