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:
|
2020-07-15 16:46:24 +00:00
|
|
|
python-version: 3.8
|
2020-06-12 21:39:16 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
2020-07-09 18:13:30 +00:00
|
|
|
run: |
|
2020-11-20 18:39:19 +00:00
|
|
|
sudo env "PATH=$PATH" python -m pip install --upgrade pip
|
|
|
|
sudo env "PATH=$PATH" pip install -r infra/ci/requirements.txt
|
|
|
|
sudo env "PATH=$PATH" pip install -r infra/build/functions/requirements.txt
|
2020-06-29 01:10:47 +00:00
|
|
|
|
|
|
|
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
|
|
|
with:
|
|
|
|
version: '298.0.0'
|
2020-07-10 12:55:36 +00:00
|
|
|
- run: |
|
2020-11-20 18:39:19 +00:00
|
|
|
sudo env "PATH=$PATH" gcloud components install beta cloud-datastore-emulator
|
2020-06-29 01:10:47 +00:00
|
|
|
|
2020-06-12 21:39:16 +00:00
|
|
|
- name: Run infra tests
|
2021-02-05 14:10:42 +00:00
|
|
|
run: sudo env "PATH=$PATH" INTEGRATION_TESTS=1 python infra/presubmit.py infra-tests -p
|
2020-06-29 01:10:47 +00:00
|
|
|
|
|
|
|
|