Skip to content

Commit

Permalink
Further tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Algiane committed Apr 11, 2024
1 parent f06bda5 commit 5491aa2
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 9 deletions.
33 changes: 25 additions & 8 deletions .github/workflows/code-cov.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
name: Code coverage

on:
# run tests on push events
push:
# run tests on PR events
pull_request:
types: [opened, synchronize]
workflow_call:
inputs:
cmake_build_type:
description: 'Value for CMAKE_BUILD_TYPE'
type: string
default: Release
required: true

add_cmake_cfg_args:
description: 'Additional arguments for configuration step'
required: false
type: string

branch_name:
description: 'Branch to checkout when tests are manually triggered'
required: false
type: string

code_coverage:
description: 'Code coverage'
required: false
default: true
type: boolean

# job
jobs:
ci:
if: "! contains(github.event.head_commit.message, '[skip ci]')"
Expand Down Expand Up @@ -347,7 +364,7 @@ jobs:
# build/TEST_OUTPUTS

- name: Upload coverage to Codecov
#if: inputs.CODE_COVERAGE
#if: matrix.os == 'ubuntu-20.04'
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Long tests

on:
# run tests on push events
push:
# run tests on PR events
pull_request:
types: [opened, synchronize]

# run tests manually on a given branch (default is master)
workflow_dispatch:
# Inputs the workflow accepts.
inputs:
branch:
# branch to test
description: 'branch to test'
# Default value if no value is explicitly provided
default: 'master'
required: false

# job
jobs:
mmg-debug:
uses: ./.github/workflows/code-cov.yml
with:
cmake_build_type: RelWithAssert
add_cmake_cfg_args: -D VERY_SHORT_TESTS=ON
branch_name: ${{github.event.inputs.branch}}
code_coverage: true
2 changes: 1 addition & 1 deletion .github/workflows/main-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ jobs:
-DTEST_LIBMMGS=ON \
-DTEST_LIBMMG2D=ON \
-DTEST_LIBMMG3D=ON \
${{ inputs.add_cmake_cfg_args }}
-DONLY_VERY_SHORT_TESTS=ON
shell: bash

- name: Build Mmg
Expand Down

0 comments on commit 5491aa2

Please sign in to comment.