mirror of https://github.com/coqui-ai/TTS.git
Update python-package-conda.yml
This commit is contained in:
parent
daf2f4f158
commit
631a772d7f
|
@ -1,6 +1,12 @@
|
||||||
name: Python Package using Conda
|
name: Python Package using Conda
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
build-linux:
|
||||||
|
@ -10,24 +16,35 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python 3.10
|
- name: Set up Python 3.10
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
- name: Add conda to system path
|
|
||||||
run: |
|
- name: Setup Conda
|
||||||
# $CONDA is an environment variable pointing to the root of the miniconda directory
|
uses: conda-incubator/setup-miniconda@v2
|
||||||
echo $CONDA/bin >> $GITHUB_PATH
|
with:
|
||||||
|
activate-environment: base
|
||||||
|
auto-activate-base: true
|
||||||
|
|
||||||
|
- name: Cache dependencies
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ~/.conda/envs/base
|
||||||
|
key: ${{ runner.os }}-conda-${{ hashFiles('environment.yml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-conda-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: conda env update --file environment.yml --name base
|
||||||
conda env update --file environment.yml --name base
|
|
||||||
- name: Lint with flake8
|
- name: Lint with flake8
|
||||||
run: |
|
run: |
|
||||||
conda install flake8
|
conda install flake8
|
||||||
# stop the build if there are Python syntax errors or undefined names
|
|
||||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
||||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||||
|
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
conda install pytest
|
conda install pytest
|
||||||
|
|
Loading…
Reference in New Issue