Skip to content

CI

CI #613

Workflow file for this run

name: CI
on:
push:
branches:
- '**'
tags:
- '**'
pull_request:
branches:
- main
schedule:
- cron: "0 0 * * 0"
jobs:
check-code-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dev tools
run: |
pip install -e .[dev]
- name: Check code format with Black
run: |
black --check .
- name: Check code style with Flake8
if: ${{ always() }}
run: |
flake8 .
run-tests:
environment: CI/CD
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
python-version: ["3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Ubuntu dependency
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get install libportaudio2 -y
- name: Install module
run: |
pip install wheel
pip install -e .[dev]
- name: Run tests
run: |
make run-tests
- name: Run e2e tests
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
make install-dependencies-e2e-tests
make run-e2e-tests