-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
2,397 additions
and
492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: ci_poetry | ||
|
||
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 Poetry | ||
run: pipx install poetry | ||
- 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 | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libsndfile1 ffmpeg | ||
poetry install | ||
- 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 zoo tensorflow models with unittest | ||
run: python -m unittest discover -s hoplite/zoo/tests_tf -p "*test.py" | ||
- name: Test agile with unittest | ||
run: python -m unittest discover -s hoplite/agile/tests -p "*test.py" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: ci_poetry | ||
|
||
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 Poetry | ||
run: pipx install poetry | ||
- 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 | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libsndfile1 ffmpeg | ||
poetry install --with jax | ||
- 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 zoo tensorflow models with unittest | ||
run: python -m unittest discover -s hoplite/zoo/tests_tf -p "*test.py" | ||
- name: Test agile with unittest | ||
run: python -m unittest discover -s hoplite/agile/tests -p "*test.py" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Upload Hoplite Python Package to PyPI when a release is Created | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
pypi-publish: | ||
name: Publish Hoplite release to PyPI | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/perch-hoplite | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libsndfile1 ffmpeg | ||
pip install absl-py | ||
pip install requests | ||
pip install tensorflow | ||
pip install tensorflow-hub | ||
pip install git+https://github.com/google-research/hoplite.git | ||
- name: Build package | ||
run: | | ||
poetry build | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
Oops, something went wrong.