kiwi-el8/.github/workflows/scripts.yml
Dan Čermák 0511838c1b
Functions integration tests (#1851)
Add integration tests for functions.sh

Implement a container based test system to run shell code for testing.
The concept utilizes pytest-testinfra and runs a container per test.
The nested container in a container feature is supported by the github
actions workflow. Thus the integration of this testing concept runs in
the github actions CI rather than on gitlab
2021-06-21 15:03:13 +02:00

41 lines
950 B
YAML

---
name: CI
on:
push:
branches:
- "master"
pull_request:
jobs:
scripts_integration_tests:
name: Integration tests for functions.sh
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
container_runtime:
- DOCKER
- PODMAN
steps:
- uses: actions/cache@v2
with:
path: |
~/.cache/pip
.tox/
key: pip-${{ hashFiles('.virtualenv.dev-requirements.txt') }}-${{ hashFiles('.virtualenv.requirements.txt') }}
restore-keys: |
-pip-
- name: checkout source code
uses: actions/checkout@v2
- name: set up Python
uses: actions/setup-python@v2
- name: install tox
run: sudo apt update && sudo apt install tox
- name: Run the scripts integration tests
run: sudo tox -e scripts
env:
CONTAINER_RUNTIME: ${{ matrix.container_runtime }}