`codecov` often reports weird diffs and we rarely take action on a codecov failure in CI. This closes #1263.
33 lines
861 B
YAML
33 lines
861 B
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_executable"
|
|
- "test.run.test_noop"
|
|
- "test.run.test_sources"
|
|
- "test.run.test_stages"
|
|
- "test.src"
|
|
steps:
|
|
- name: "Clone Repository"
|
|
uses: actions/checkout@v3
|
|
- name: "Run Tests"
|
|
uses: osbuild/containers/src/actions/privdocker@552e30cf1b4ed19c6ddaa57f96c342b3dff4227b
|
|
with:
|
|
image: ghcr.io/osbuild/osbuild-ci:latest-202209070757
|
|
run: |
|
|
python3 -m pytest \
|
|
--pyargs "${{ matrix.test }}" \
|
|
--rootdir=. \
|
|
--cov-report=xml --cov=osbuild \
|
|
-v
|