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]
|
||||
|
||||
jobs:
|
||||
source_tests:
|
||||
name: "Source Tests"
|
||||
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
|
||||
- name: "Run Source Tests"
|
||||
uses: osbuild/containers/ghci/actions/ghci-osbuild@ghci/v1
|
||||
- name: "Run Tests"
|
||||
uses: osbuild/containers/src/actions/ghci-osbuild@v1
|
||||
with:
|
||||
run: make test-src
|
||||
|
||||
module_tests:
|
||||
name: "Module Unittests"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- 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
|
||||
run: |
|
||||
python3 -m unittest discover \
|
||||
-k "${{ matrix.test }}" \
|
||||
-s "test" \
|
||||
-t . \
|
||||
-v
|
||||
|
||||
documentation:
|
||||
name: "📚 Documentation"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue