Skip to content

Commit ea80a1e

Browse files
authored
Add support for privileged tests (#1369)
Signed-off-by: Willem Pienaar <git@willem.co>
1 parent c8b039d commit ea80a1e

2 files changed

Lines changed: 35 additions & 3 deletions

File tree

.github/workflows/privileged.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: privileged
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- synchronize
8+
- labeled
9+
10+
jobs:
11+
integration-test-python:
12+
# all jobs MUST have this if check for 'ok-to-test' or 'approved' for security purposes.
13+
if: contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(github.event.pull_request.labels.*.name, 'approved')
14+
runs-on: ubuntu-latest
15+
container: gcr.io/kf-feast/feast-ci:latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
with:
19+
# pull_request_target runs the workflow in the context of the base repo
20+
# as such actions/checkout needs to be explicit configured to retrieve
21+
# code from the PR.
22+
ref: ${{ github.event.pull_request.merge_commit_sha }}
23+
submodules: recursive
24+
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
25+
with:
26+
version: '290.0.1'
27+
export_default_credentials: true
28+
project_id: ${{ secrets.GCP_PROJECT_ID }}
29+
service_account_key: ${{ secrets.GCP_SA_KEY }}
30+
- name: Install python
31+
run: make install-python
32+
- name: Test python
33+
run: FEAST_TELEMETRY=False pytest --verbose --color=yes sdk/python/tests --integration
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: complete
1+
name: unprivileged
22

33
on: [push, pull_request]
44

@@ -45,5 +45,4 @@ jobs:
4545
- name: Install dependencies
4646
run: make compile-protos-go
4747
- name: Test go
48-
run: make test-go
49-
48+
run: make test-go

0 commit comments

Comments
 (0)