Skip to content

Commit

Permalink
Add pip install CI.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 694598325
  • Loading branch information
sdenton4 authored and copybara-github committed Nov 8, 2024
1 parent d349af4 commit 080dbdb
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci_pip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

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 }}
cache: 'poetry'
- name: Install Chirp and its dependencies via pip
- 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
python3 .github/install_colab_deps.py
pip install -r /tmp/colab_reqs.txt
pip install git+https://github.com/google-research/perch.git
- name: Test with unittest
run: poetry run python -m unittest discover -s chirp/tests -p "*test.py"
- name: Test training with unittest
run: poetry run python -m unittest discover -s chirp/train_tests -p "*test.py"
- name: Test inference with unittest
run: poetry run python -m unittest discover -s chirp/inference/tests -p "*test.py"
- name: Test hoplite with unittest
run: poetry run python -m unittest discover -s chirp/projects/agile2/tests -p "*test.py"
- name: Test agile2 with unittest
run: poetry run python -m unittest discover -s chirp/projects/hoplite/tests -p "*test.py"

0 comments on commit 080dbdb

Please sign in to comment.