-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (40 loc) · 1.48 KB
/
ci_poetry.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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@v4
- 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 Hoplite and its dependencies
run: |
sudo apt-get update
sudo apt-get install libsndfile1 ffmpeg
poetry install
- name: Test db with unittest
run: poetry run python -m unittest discover -s hoplite/db/tests -p "*test.py"
- name: Test taxonomy with unittest
run: poetry run python -m unittest discover -s hoplite/taxonomy -p "*test.py"
- name: Test zoo with unittest
run: poetry run python -m unittest discover -s hoplite/zoo -p "*test.py"
- name: Test zoo tensorflow models with unittest
run: poetry run python -m unittest discover -s hoplite/zoo/tests_tf -p "*test.py"
- name: Test agile with unittest
run: poetry run python -m unittest discover -s hoplite/agile/tests -p "*test.py"