debian-forge/.github/workflows/tests.yml
Christian Kellner 0aea72e44e ci: run ostree image tests via Schutbot
OSTree tests, especially the fedora-ostree-image one, will soon
need the tight integration with the host for LVM2/LUKS support.
This we cannot run them in github action containers. Move them
to Schutzbot.
Explicitly install the new sub-package until composer gains the
needed requirement.
2021-12-09 00:44:21 +00:00

36 lines
1 KiB
YAML

name: Tests
on: [pull_request, push]
jobs:
test_suite:
name: "Test Suite"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test:
- "test.mod"
- "test.run.test_assemblers"
- "test.run.test_boot"
- "test.run.test_noop"
- "test.run.test_sources"
- "test.run.test_stages"
- "test.src"
steps:
- name: "Clone Repository"
uses: actions/checkout@v2
with:
fetch-depth: 2 # codecov requires this (https://github.com/codecov/codecov-action/issues/190)
- name: "Run Tests"
uses: osbuild/containers/src/actions/privdocker@e4de123f43b95e99dfe8eed0bd5a1cd58db50715
with:
image: ghcr.io/osbuild/osbuild-ci:latest-202111091120
run: |
python3 -m pytest \
--pyargs "${{ matrix.test }}" \
--rootdir=. \
--cov-report=xml --cov=osbuild \
-v
- name: Send coverage to codecov.io
run: bash <(curl -s https://codecov.io/bash)