+ git fetch origin master -depth 1 + git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/master + + - name: Setup python environment + uses: + with: + python-version: 3.8 + + - name: Install dependencies + run: | + python -m pip install -upgrade pip + pip install -r infra/ci/requirements.txt + pip install -r infra/build/functions/requirements.txt + + - name: Run presubmit checks + run: python infra/presubmit.py diff -git a/.github/workflows/project_tests.yml b/.github/workflows/project_tests.yml +++ -0,0 +1,26 Presubmit checks +on: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: + - 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: + with: + python-version: 3.8 + + - name: Install dependencies + run: | + python -m pip install -upgrade pip + pip install -r infra/ci/requirements.txt + pip install -r infra/build/functions/requirements.txt + + - uses: + with: + version: '298.0.0' + - run: | + gcloud components install beta cloud-datastore-emulator + gcloud info + + - name: Run infra tests + run: python infra/presubmit.py infra-tests + + diff -git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml +++ -0,0 +1,38 Infra tests +on: + pull_request: + paths: + - 'infra/**' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: + - run: | # Needed for git diff to work. +.vscode/ +*.pyc +/build/ +*~ +.DS_Store +*.swp diff -git a/.github/workflows/infra_tests.yml b/.github/workflows/infra_tests.yml
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |