Skip to content

Create embedding models from configurations with a from_config classmethod instead of abusing the dataclass post_init function. #2351

Create embedding models from configurations with a from_config classmethod instead of abusing the dataclass post_init function.

Create embedding models from configurations with a from_config classmethod instead of abusing the dataclass post_init function. #2351

Workflow file for this run

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"]
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 with unittest
run: poetry run python -m unittest discover -s chirp/tests -p "*test.py"