diff --git a/.github/.codecov.yml b/.github/.codecov.yml index 6ebcb2c36a..b9d18eef73 100644 --- a/.github/.codecov.yml +++ b/.github/.codecov.yml @@ -2,7 +2,4 @@ # For more details, please see: # https://docs.codecov.com/docs/pull-request-comments#section-behavior comment: - behavior: new - layout: "sunburst, diff, files" - require_head: no - require_base: no \ No newline at end of file + behavior: new \ No newline at end of file diff --git a/.github/workflows/pr-gate.yml b/.github/workflows/pr-gate.yml index 3e0d6bd7c5..953b31fc6f 100644 --- a/.github/workflows/pr-gate.yml +++ b/.github/workflows/pr-gate.yml @@ -5,8 +5,11 @@ name: pr-gate on: + pull_request: + branches: [ staging, main ] + # development triggers can be removed afterwards. push: - branches: [ laserprec/ghaction-ci, laserprec/ghaction-sandbox* ] + branches: [ laserprec/gpu-ci, laserprec/ghaction-sandbox* ] # This file defines following CI workflow: # @@ -20,7 +23,7 @@ on: # │ └─────────┘ │ # │ ┌─────────┐ │ # └─► build* ├─┘ -# │ (gpu) │ <-- TODO: Coming Soon +# │ (gpu) │ # └─────────┘ # .... # *each runs in PARALLEL the different combinations @@ -135,12 +138,47 @@ jobs: name: code-cov path: .coverage* +############################################### +################# GPU-BUILD ################# +############################################### + build-gpu: + runs-on: [self-hosted, Linux, gpu] # this is a union of labels to select specific self-hosted machine + needs: static-analysis + strategy: + matrix: + python: [3.6] + # different kind of tests are located in tests/ folders + test-kind: ['unit'] + # pytest markers configured in tox.ini. See https://docs.pytest.org/en/6.2.x/example/markers.html + test-marker: ['gpu and notebooks and not spark', 'gpu and not notebooks and not spark'] + + steps: + - uses: actions/checkout@v2 + + ################# Run Python tests ################# + - name: Use Python ${{ matrix.python }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + + - name: Run ${{ matrix.test-kind }} tests ('${{ matrix.test-marker }}') + uses: ./.github/workflows/actions/run-tests + with: + test-kind: ${{ matrix.test-kind }} + test-marker: ${{ matrix.test-marker }} + + - name: Upload Code Coverage + uses: actions/upload-artifact@v2 + with: + name: code-cov + path: .coverage* + ############################################### ############ TEST COVERAGE SUMMARY ############ ############################################### collect-code-cov: runs-on: ubuntu-latest - needs: [build-cpu, build-spark] + needs: [build-cpu, build-spark, build-gpu] steps: - uses: actions/checkout@v2 - name: Setup Python