ghci: merge unittest invocations
Merge all unittest invocations into a single Github-Workflow Job. This simplifies our workflow and allows us to easily parallelize individual jobs.
This commit is contained in:
parent
06af246f38
commit
5c3ce5c30a
1 changed files with 21 additions and 27 deletions
48
.github/workflows/tests.yml
vendored
48
.github/workflows/tests.yml
vendored
|
|
@ -3,38 +3,32 @@ name: Tests
|
||||||
on: [pull_request, push]
|
on: [pull_request, push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
source_tests:
|
test_suite:
|
||||||
name: "Source Tests"
|
name: "Test Suite"
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- name: "Clone Repository"
|
- name: "Clone Repository"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: "Run Source Tests"
|
- name: "Run Tests"
|
||||||
uses: osbuild/containers/ghci/actions/ghci-osbuild@ghci/v1
|
uses: osbuild/containers/src/actions/ghci-osbuild@v1
|
||||||
with:
|
with:
|
||||||
run: make test-src
|
run: |
|
||||||
|
python3 -m unittest discover \
|
||||||
module_tests:
|
-k "${{ matrix.test }}" \
|
||||||
name: "Module Unittests"
|
-s "test" \
|
||||||
runs-on: ubuntu-latest
|
-t . \
|
||||||
steps:
|
-v
|
||||||
- name: "Clone Repository"
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: "Run Module Unittests"
|
|
||||||
uses: osbuild/containers/ghci/actions/ghci-osbuild@ghci/v1
|
|
||||||
with:
|
|
||||||
run: make test-mod
|
|
||||||
|
|
||||||
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-run
|
|
||||||
|
|
||||||
documentation:
|
documentation:
|
||||||
name: "📚 Documentation"
|
name: "📚 Documentation"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue