Skip to content

Commit

Permalink
Merge pull request #1499 from microsoft/laserprec/gpu-ci
Browse files Browse the repository at this point in the history
Add gpu build to pr-gate
  • Loading branch information
Jianjie Liu authored Aug 17, 2021
2 parents 6e67f3a + 7dc915e commit 3e23511
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .github/.codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
behavior: new
44 changes: 41 additions & 3 deletions .github/workflows/pr-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
#
Expand All @@ -20,7 +23,7 @@ on:
# │ └─────────┘ │
# │ ┌─────────┐ │
# └─► build* ├─┘
# │ (gpu) │ <-- TODO: Coming Soon
# │ (gpu) │
# └─────────┘
# ....
# *each runs in PARALLEL the different combinations
Expand Down Expand Up @@ -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/<unit|integration|smoke> 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
Expand Down

0 comments on commit 3e23511

Please sign in to comment.