Skip to content

Commit

Permalink
Add support for privileged tests (#1369)
Browse files Browse the repository at this point in the history
Signed-off-by: Willem Pienaar <git@willem.co>
  • Loading branch information
woop authored Mar 6, 2021
1 parent c8b039d commit ea80a1e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/privileged.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: privileged

on:
pull_request_target:
types:
- opened
- synchronize
- labeled

jobs:
integration-test-python:
# all jobs MUST have this if check for 'ok-to-test' or 'approved' for security purposes.
if: contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(github.event.pull_request.labels.*.name, 'approved')
runs-on: ubuntu-latest
container: gcr.io/kf-feast/feast-ci:latest
steps:
- uses: actions/checkout@v2
with:
# pull_request_target runs the workflow in the context of the base repo
# as such actions/checkout needs to be explicit configured to retrieve
# code from the PR.
ref: ${{ github.event.pull_request.merge_commit_sha }}
submodules: recursive
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
with:
version: '290.0.1'
export_default_credentials: true
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
- name: Install python
run: make install-python
- name: Test python
run: FEAST_TELEMETRY=False pytest --verbose --color=yes sdk/python/tests --integration
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: complete
name: unprivileged

on: [push, pull_request]

Expand Down Expand Up @@ -45,5 +45,4 @@ jobs:
- name: Install dependencies
run: make compile-protos-go
- name: Test go
run: make test-go

run: make test-go

0 comments on commit ea80a1e

Please # to comment.