Skip to content

Commit

Permalink
dynamic branch selection
Browse files Browse the repository at this point in the history
  • Loading branch information
psilo909 committed May 16, 2022
1 parent b9c372a commit bcaff7c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,28 @@ jobs:
python-version: [ '3.7', '3.8', '3.9', '3.10' ]
name: Python ${{ matrix.python-version }}
steps:
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: update OS (Ubuntu)
run: sudo apt-get update
- run: sudo apt-get install libudev-dev
- run: sudo apt-get install librrd-dev libpython3-dev
- run: sudo apt-get install gcc --only-upgrade
- uses: actions/checkout@v2

- name: Checkout SmartHomeNG CORE DEVELOP Branch
- name: Checkout SmartHomeNG CORE ${{steps.extract_branch.outputs.branch}} Branch
uses: actions/checkout@v2
with:
repository: smarthomeNG/smarthome
ref: develop
ref: ${{steps.extract_branch.outputs.branch}}
path: smarthomeng
- name: Checkout SmartHomeNG plugins DEVELOP Branch
- name: Checkout SmartHomeNG PLUGINS ${{steps.extract_branch.outputs.branch}} Branch
uses: actions/checkout@v2
with:
repository: smarthomeNG/plugins
ref: develop
ref: ${{steps.extract_branch.outputs.branch}}
path: smarthomeng/plugins

- name: Set up Python
Expand Down

0 comments on commit bcaff7c

Please sign in to comment.