33 lines
764 B
YAML
33 lines
764 B
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pre-commit/action@v3.0.1
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.10"
|
|
cache: "pip"
|
|
- name: Install CPU Torch
|
|
run: pip3 install torch torchaudio --index-url https://download.pytorch.org/whl/cpu
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install pytest-cov
|
|
python install.py
|
|
- run: pytest --cov --cov-report=term-missing .
|