forked from rdkcentral/BundleGen
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RDK-35868] - Add unit tests to BundleGen (rdkcentral#78)
As part of this pull request, added the workflow changes for L1 unit testing
- Loading branch information
Showing
1 changed file
with
37 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,37 @@ | ||
name: L1 unit test | ||
|
||
on: | ||
push: | ||
branches: [ master, main, 'sprint/**', 'release/**' ] | ||
|
||
pull_request: | ||
# By default: opened, synchronize, or reopened | ||
branches: [ master, main, 'sprint/**', 'release/**' ] | ||
|
||
jobs: | ||
L1-unit-test: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
|
||
- name: Checkout this repository | ||
echo "Checkout this repo" | ||
uses: actions/checkout@v3 | ||
with: | ||
path: Bundlegen | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.x' | ||
cache: 'pip' | ||
- run: pip install -r Bundlegen/requirements.txt | ||
- run: pip install --editable Bundlegen/ | ||
|
||
- name: Run the unit test | ||
working-directory: ./Bundlegen/unit_tests/L1_testing | ||
run: | | ||
python run_L1_test.py |