Skip to content

Commit

Permalink
Create ci_pip.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sdenton4 authored Nov 21, 2024
1 parent 9e9b31c commit 03f96ce
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci_pip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: ci_pip

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 Perch/Hoplite 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/googlestaging/hoplite.git
- name: Test db with unittest
run: python -m unittest discover -s hoplite/db/tests -p "*test.py"
- name: Test taxonomy with unittest
run: python -m unittest discover -s hoplite/taxonomy -p "*test.py"
- name: Test zoo with unittest
run: python -m unittest discover -s hoplite/zoo -p "*test.py"
- name: Test agile with unittest
run: python -m unittest discover -s hoplite/agile/tests -p "*test.py"

0 comments on commit 03f96ce

Please sign in to comment.