Skip to content

Commit

Permalink
ci: fix compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Untereiner committed Aug 1, 2024
1 parent 751e3e2 commit ac1d382
Showing 1 changed file with 50 additions and 50 deletions.
100 changes: 50 additions & 50 deletions .github/workflows/compliance.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Compliance Checks
name: Compliance

on:
pull_request:
Expand All @@ -9,7 +9,7 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# workflow_call:
# inputs:
# config-path:
Expand Down Expand Up @@ -145,53 +145,53 @@ jobs:
RUNS_ON: ubuntu-22.04
USE_SCCACHE: false

code_coverage:
needs:
- is_not_draft_pull_request
uses: ./.github/workflows/build_and_test.yml
secrets: inherit
with:
BUILD_AND_TEST_CLI_ARGS: "--no-run-unit-tests"
CMAKE_BUILD_TYPE: Debug
CODE_COVERAGE: true
DOCKER_IMAGE_TAG: ${{ needs.is_not_draft_pull_request.outputs.DOCKER_IMAGE_TAG }}
DOCKER_REPOSITORY: geosx/ubuntu22.04-gcc11
ENABLE_HYPRE: ON
ENABLE_TRILINOS: OFF
GCP_BUCKET: geosx/ubuntu22.04-gcc11
RUNS_ON: Runner_4core_16GB
# code_coverage:
# needs:
# - is_not_draft_pull_request
# uses: ./.github/workflows/build_and_test.yml
# secrets: inherit
# with:
# BUILD_AND_TEST_CLI_ARGS: "--no-run-unit-tests"
# CMAKE_BUILD_TYPE: Debug
# CODE_COVERAGE: true
# DOCKER_IMAGE_TAG: ${{ needs.is_not_draft_pull_request.outputs.DOCKER_IMAGE_TAG }}
# DOCKER_REPOSITORY: geosx/ubuntu22.04-gcc11
# ENABLE_HYPRE: ON
# ENABLE_TRILINOS: OFF
# GCP_BUCKET: geosx/ubuntu22.04-gcc11
# RUNS_ON: Runner_4core_16GB

# Convenience job - passes when all other jobs have passed (must pass the CUDA jobs).
check_that_all_jobs_succeeded:
name: Generate output
runs-on: ubuntu-22.04
needs:
- if_not_unassigned_pull_request
- are_submodules_in_sync
- check_code_style_and_documentation
- cpu_builds
- cuda_builds
- run_integrated_tests
# Map the job outputs to step outputs
outputs:
output1: ${{ steps.step2.outputs.firstword }}
steps:
- id: step1
run: |
echo "if_not_unassigned_pull_request: ${{needs.if_not_unassigned_pull_request.result}}"
echo "are_submodules_in_sync: ${{needs.are_submodules_in_sync.result}}"
echo "check_code_style_and_documentation: ${{needs.check_code_style_and_documentation.result}}"
echo "cpu_builds: ${{needs.cpu_builds.result}}"
echo "cuda_builds: ${{needs.cuda_builds.result}}"
echo "run_integrated_tests: ${{needs.run_integrated_tests.result}} "
- id: step2
run: |
${{
needs.if_not_unassigned_pull_request.result == 'success' &&
needs.are_submodules_in_sync.result == 'success' &&
needs.check_code_style_and_documentation.result == 'success' &&
needs.cpu_builds.result == 'success' &&
needs.cuda_builds.result == 'success' &&
needs.run_integrated_tests.result == 'success'
}}
echo "firstword=hello" >> $GITHUB_OUTPUT
# check_that_all_jobs_succeeded:
# name: Generate output
# runs-on: ubuntu-22.04
# needs:
# - if_not_unassigned_pull_request
# - are_submodules_in_sync
# - check_code_style_and_documentation
# # - cpu_builds
# # - cuda_builds
# - run_integrated_tests
# # Map the job outputs to step outputs
# outputs:
# output1: ${{ steps.step2.outputs.firstword }}
# steps:
# - id: step1
# run: |
# echo "if_not_unassigned_pull_request: ${{needs.if_not_unassigned_pull_request.result}}"
# echo "are_submodules_in_sync: ${{needs.are_submodules_in_sync.result}}"
# echo "check_code_style_and_documentation: ${{needs.check_code_style_and_documentation.result}}"
# echo "cpu_builds: ${{needs.cpu_builds.result}}"
# echo "cuda_builds: ${{needs.cuda_builds.result}}"
# echo "run_integrated_tests: ${{needs.run_integrated_tests.result}} "
# - id: step2
# run: |
# ${{
# needs.if_not_unassigned_pull_request.result == 'success' &&
# needs.are_submodules_in_sync.result == 'success' &&
# needs.check_code_style_and_documentation.result == 'success' &&
# needs.cpu_builds.result == 'success' &&
# needs.cuda_builds.result == 'success' &&
# needs.run_integrated_tests.result == 'success'
# }}
# echo "firstword=hello" >> $GITHUB_OUTPUT

0 comments on commit ac1d382

Please sign in to comment.