2020-06-12 21:39:16 +00:00
|
|
|
name: Infra tests
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'infra/**'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: | # Needed for git diff to work.
|
|
|
|
git fetch origin master --depth 1
|
|
|
|
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/master
|
|
|
|
|
|
|
|
- name: Setup python environment
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: 3.7
|
|
|
|
|
|
|
|
- name: Install dependencies
|
2020-06-29 01:10:47 +00:00
|
|
|
run:
|
|
|
|
pip install -r infra/ci/requirements.txt
|
|
|
|
pip install -r infra/build/functions/requirements.txt
|
|
|
|
|
|
|
|
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
|
|
|
with:
|
|
|
|
version: '298.0.0'
|
|
|
|
- run:
|
|
|
|
gcloud components install beta cloud-datastore-emulator &&
|
|
|
|
gcloud info
|
|
|
|
|
2020-06-12 21:39:16 +00:00
|
|
|
|
|
|
|
- name: Run infra tests
|
|
|
|
run: python infra/presubmit.py infra-tests
|
2020-06-29 01:10:47 +00:00
|
|
|
|
|
|
|
|