Skip to content

update workflow2

update workflow2 #56

Workflow file for this run

name: Python application
on:
push:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10.14"
- name: Update pip and install build tools
run: |
python -m pip install --upgrade pip
pip install wheel setuptools Cython
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y portaudio19-dev python3-dev build-essential
- name: Install PyTorch dependencies first
run: |
pip install torch==2.3.1+cu121 torchaudio==2.3.1+cu121 torchvision==0.18.1+cu121 -f https://download.pytorch.org/whl/torch_stable.html
- name: Install other dependencies
run: |
pip install -r requirements.txt
- name: Run tests
run: |
pytest tests/ --cov=./ --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}