diff --git a/.github/workflows/ci_pip.yml b/.github/workflows/ci_pip.yml new file mode 100644 index 00000000..dedc7f48 --- /dev/null +++ b/.github/workflows/ci_pip.yml @@ -0,0 +1,40 @@ +name: CI_pip_no_jaxtrain + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + # Allows to run this workflow manually from the Actions tab on GitHub. + workflow_dispatch: + +jobs: + test-ubuntu: + name: "test on ${{ matrix.python-version }} on ${{ matrix.os }}" + runs-on: "${{ matrix.os }}" + strategy: + matrix: + python-version: ["3.10", "3.11"] + os: [ubuntu-latest] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install Chirp and its dependencies via pip. + run: | + sudo apt-get update + sudo apt-get install libsndfile1 ffmpeg + pip install absl-py + pip install requests + pip install tensorflow-cpu + pip install git+https://github.com/google-research/perch.git + - name: Test with unittest + run: python -m unittest discover -s chirp/tests -p "*test.py" + - name: Test inference with unittest + run: python -m unittest discover -s chirp/inference/tests -p "*test.py" + - name: Test hoplite with unittest + run: python -m unittest discover -s chirp/projects/agile2/tests -p "*test.py" + - name: Test agile2 with unittest + run: python -m unittest discover -s chirp/projects/hoplite/tests -p "*test.py"