-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Add further container-based compatibility tests
Signed-off-by: Hanno Becker <[email protected]>
- Loading branch information
1 parent
9f3aa7c
commit 4686a2c
Showing
7 changed files
with
335 additions
and
56 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
.github/actions/setup-ubuntu/action.yml → .github/actions/setup-apt/action.yml
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,37 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Setup OS | ||
description: Setup OS | ||
|
||
inputs: | ||
packages: | ||
description: Space-separated list of additional packages to install | ||
required: false | ||
default: '' | ||
sudo: | ||
required: false | ||
default: 'sudo' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Detect OS | ||
shell: bash | ||
run: | | ||
if (which yum > /dev/null); then | ||
echo PKG="yum" >> $GITHUB_ENV | ||
elif (which apt > /dev/null); then | ||
echo PKG="apt" >> $GITHUB_ENV | ||
fi | ||
- name: Setup via yum | ||
if: ${{ env.PKG == 'yum' }} | ||
uses: ./.github/actions/setup-yum | ||
with: | ||
packages: ${{ inputs.packages }} | ||
sudo: ${{ inputs.sudo }} | ||
- name: Setup via apt | ||
if: ${{ env.PKG == 'apt' }} | ||
uses: ./.github/actions/setup-apt | ||
with: | ||
packages: ${{ inputs.packages }} | ||
sudo: ${{ inputs.sudo }} |
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,34 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Dependencies (yum) | ||
description: Install dependencies via yum | ||
|
||
inputs: | ||
packages: | ||
description: Space-separated list of additional packages to install | ||
required: false | ||
default: '' | ||
sudo: | ||
required: false | ||
default: 'sudo' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Install base packages | ||
shell: bash | ||
run: | | ||
${{ inputs.sudo }} yum install make git python3-pip -y | ||
${{ inputs.sudo }} pip3 install virtualenv | ||
- name: Install additional packages | ||
if: ${{ inputs.packages != ''}} | ||
shell: bash | ||
run: | | ||
${{ inputs.sudo }} yum install ${{ inputs.packages }} -y | ||
- name: Setup Python venv | ||
shell: bash | ||
run: | | ||
virtualenv venv | ||
source venv/bin/activate | ||
python3 -m pip install -r requirements.txt | ||
echo "$(pwd)/venv/bin/" >> "$GITHUB_PATH" |
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.