debian-forge/.github/workflows/runtime-tests.yml
David Rheinsberg a3d1e3ff50 test: import no-op test into the runtime-tests
Add a new trivial runtime-test which simply runs a no-op pipeline. This
is a fast, trivial test that simply verifies osbuild is properly setup
and accessible.

Remove the explicit no-op test from the CI, now that the test-suite has
it as well.
2020-06-05 09:27:40 +02:00

81 lines
2.1 KiB
YAML

name: Runtime Tests
on: [pull_request, push]
#
# We set `PYTHONUNBUFFERED` to get more immediate and ordered output from
# python programs. This should not be necessary if all relevant output used the
# unbuffered stderr, but that is not entirely under our control.
#
env:
PYTHONUNBUFFERED: 1
jobs:
runtime_tests:
name: "Runtime Pipeline Execution Tests"
runs-on: ubuntu-latest
steps:
- name: "Clone Repository"
uses: actions/checkout@v2
- name: "Run Pipeline Tests"
uses: osbuild/containers/ghci/actions/ghci-osbuild@ghci/v1
with:
run: make test-runtime
boot_tests:
name: "Boot Tests"
runs-on: ubuntu-latest
steps:
- name: "Clone Repository"
uses: actions/checkout@v2
- name: "Run Boot Tests"
uses: osbuild/containers/ghci/actions/ghci-osbuild@ghci/v1
with:
run: python3 -m unittest -v test.test_boot
assembler_tests:
name: "Assembler Tests"
runs-on: ubuntu-latest
steps:
- name: "Clone Repository"
uses: actions/checkout@v2
- name: "Install Dependencies"
run: |
sudo apt-get update
sudo apt-get -y install \
nbd-client \
qemu-utils \
rpm \
systemd-container \
tar \
yum
- name: "Set up Python"
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install Python Packages
run: pip install jsonschema
- name: "Run Assembler Tests"
run: sudo env "PATH=$PATH" python3 -m unittest -v test.test_assemblers
stage_tests:
name: "Stage Tests"
runs-on: ubuntu-latest
steps:
- name: "Clone Repository"
uses: actions/checkout@v2
- name: "Install Dependencies"
run: |
sudo apt-get update
sudo apt-get -y install \
systemd-container \
tar \
yum
- name: "Set up Python"
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install Python Packages
run: pip install jsonschema
- name: "Run Stage Tests"
run: sudo env "PATH=$PATH" python3 -m unittest -v test.test_stages