mirror of https://github.com/coqui-ai/TTS.git
commit
a3c8581ec2
|
@ -3,14 +3,13 @@ name: api_tests
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- energy
|
||||||
jobs:
|
jobs:
|
||||||
check_skip:
|
measure-energy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: "! contains(github.event.head_commit.message, '[ci skip]')"
|
name: Run power usage check
|
||||||
steps:
|
steps:
|
||||||
- run: echo "${{ github.event.head_commit.message }}"
|
- run: sar -u 1 240
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
|
|
|
@ -7,11 +7,11 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
jobs:
|
jobs:
|
||||||
check_skip:
|
measure-energy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: "! contains(github.event.head_commit.message, '[ci skip]')"
|
name: Run power usage check
|
||||||
steps:
|
steps:
|
||||||
- run: echo "${{ github.event.head_commit.message }}"
|
- run: sar -u 1 240
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
@ -3,25 +3,16 @@ name: data-tests
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- energy
|
||||||
pull_request:
|
|
||||||
types: [opened, synchronize, reopened]
|
|
||||||
jobs:
|
jobs:
|
||||||
check_skip:
|
measure-energy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: "! contains(github.event.head_commit.message, '[ci skip]')"
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
|
name: A job to measure energy
|
||||||
steps:
|
steps:
|
||||||
- run: echo "${{ github.event.head_commit.message }}"
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
python-version: [3.9, "3.10", "3.11"]
|
|
||||||
experimental: [false]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
|
@ -47,5 +38,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install .[all]
|
python3 -m pip install .[all]
|
||||||
python3 setup.py egg_info
|
python3 setup.py egg_info
|
||||||
- name: Unit tests
|
|
||||||
run: make data_tests
|
- name: Measure unit test energy
|
||||||
|
uses: koenhagen/measure-energy-action@v0.4
|
||||||
|
with:
|
||||||
|
what-to-test: make data_tests
|
||||||
|
|
Loading…
Reference in New Issue