forked from smarthomeNG/plugins
-
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
Showing
466 changed files
with
49,923 additions
and
53,472 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
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,67 @@ | ||
name: "Unittests Plugins" | ||
#on: [workflow_dispatch, push] | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- 'develop' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 #latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ] | ||
name: Python ${{ matrix.python-version }} | ||
steps: | ||
- name: Setup OS (Ubuntu) | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libudev-dev | ||
sudo apt-get install librrd-dev libpython3-dev | ||
sudo apt-get install gcc --only-upgrade | ||
- name: Get branch name | ||
run: | | ||
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
echo ${GITHUB_REF#refs/heads/} | ||
id: extract_branch | ||
|
||
- name: Checkout core from develop branch | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: smarthomeNG/smarthome | ||
ref: develop | ||
|
||
- name: Checkout plugins from ${{steps.extract_branch.outputs.branch}} branch | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: smarthomeNG/plugins | ||
ref: ${{steps.extract_branch.outputs.branch}} | ||
path: plugins | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- run: python3 -m pip install --upgrade pip | ||
|
||
- name: Install requirements for unit testing | ||
run: pip install -r tests/requirements.txt | ||
- name: Build Requirements for SmartHomeNG | ||
run: python3 tools/build_requirements.py | ||
- name: Install SmartHomeNG base requirements | ||
# base requirements are needed for pytest to run | ||
run: pip install -r requirements/base.txt | ||
|
||
# --- up to here, the workflow is identical for CORE and PLUGINS --- | ||
|
||
- name: Install SmartHomeNG all requirements | ||
# all requirements are needed for pytest to run plugin tests | ||
run: pip install -r requirements/all.txt | ||
|
||
- name: '>>> Run Python Unittests for PLUGINS <<<' | ||
working-directory: ./plugins | ||
run: pytest |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
def plugin_release(): | ||
return '1.9.3' | ||
return '1.9.4' | ||
|
||
def plugin_branch(): | ||
return 'master' | ||
|
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
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
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
Oops, something went wrong.