-
Notifications
You must be signed in to change notification settings - Fork 1
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
9cac43d
commit 86d7e8f
Showing
4 changed files
with
114 additions
and
90 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,54 @@ | ||
name: Test anms-core | ||
on: | ||
push: | ||
paths: | ||
- .github/workflows/anms-core.yaml | ||
- deps | ||
- anms-core | ||
|
||
jobs: | ||
unit-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
pip3 install deps/anms-ace | ||
pip3 install deps/anms-camp | ||
- name: Install | ||
working-directory: anms-core | ||
run: pip3 install -e '.[test]' | ||
- name: Run test | ||
working-directory: anms-core | ||
run: PYTHONPATH=src python3 -m pytest --junit-xml=testresults.xml --cov=anms test | ||
|
||
flake8: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
pip3 install deps/anms-ace | ||
pip3 install deps/anms-camp | ||
- name: Install flake8 | ||
working-directory: anms-core | ||
run: pip3 install -e '.[flake8]' | ||
- name: Run flake8 | ||
working-directory: anms-core | ||
run: | | ||
FAIL_SRC=0 | ||
flake8 src || FAIL_SRC=$? |
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,31 @@ | ||
name: Test aricodec | ||
on: | ||
push: | ||
paths: | ||
- .github/workflows/transcoder.yaml | ||
- deps | ||
- aricodec | ||
|
||
jobs: | ||
flake8: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
pip3 install deps/anms-ace | ||
- name: Install flake8 | ||
working-directory: aricodec | ||
run: pip3 install -e '.[flake8]' | ||
- name: Run flake8 | ||
working-directory: aricodec | ||
run: | | ||
FAIL_SRC=0 | ||
flake8 src || FAIL_SRC=$? |
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
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,28 @@ | ||
name: Test transcoder | ||
on: | ||
push: | ||
paths: | ||
- .github/workflows/transcoder.yaml | ||
- deps | ||
- transcoder | ||
|
||
jobs: | ||
flake8: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Install flake8 | ||
working-directory: transcoder | ||
run: pip3 install -e '.[flake8]' | ||
- name: Run flake8 | ||
working-directory: transcoder | ||
run: | | ||
FAIL_SRC=0 | ||
flake8 src || FAIL_SRC=$? |