forked from erew123/alltalk_tts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
925c73a
commit 1a16105
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: Python CI | ||
|
||
on: [push, pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.11.9 | ||
uses: actions/setup-python@v3 | ||
if: ${{ hashFiles('./test') != '' }} | ||
with: | ||
python-version: "3.11.9" | ||
- name: Install dependencies | ||
if: ${{ hashFiles('./test') != '' }} | ||
run: | | ||
python -m pip install --upgrade pip | ||
if [ -f system/requirements/requirements_unit_test.txt ]; then | ||
pip install -r system/requirements/requirements_unit_test.txt; | ||
fi | ||
- name: Test with pytest | ||
if: ${{ hashFiles('./test') != '' }} | ||
run: | | ||
python -m unittest discover -s ./test -p 'test_*.py' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
filelock>=3.16.1 | ||
pydantic>=2.7.0 |