forked from devroles/meta_test
-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (38 loc) · 1.11 KB
/
container_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build container-based tox-ansible tests
"on":
workflow_call:
inputs:
scenarios:
required: true
type: string
jobs:
container_build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
scenario: ${{ fromJson(inputs.scenarios) }}
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Set up Python
uses: actions/setup-python@v2
- name: Update submodules to latest
run: git submodule update --remote --recursive
- name: Do install path
uses: ./tests/.github/actions/install_path/
id: path
- name: Install dependencies
run: |
set -ex
sudo apt-get update
sudo apt-get install -y libapt-pkg-dev build-essential python3-setuptools python3-apt
python -m pip install --upgrade pip
pip install -U setuptools wheel
pip install tox
- name: Run tox against ${{ matrix.scenario }}
run: |
set -ex
cd "${{ steps.path.outputs.path }}"
tox -e ${{ matrix.scenario }}