Skip to content

Merge pull request #29 from GoogleCloudPlatform/develop #140

Merge pull request #29 from GoogleCloudPlatform/develop

Merge pull request #29 from GoogleCloudPlatform/develop #140

Workflow file for this run

name: Test
on:
pull_request:
push:
env:
PIPENV_VENV_IN_PROJECT: enabled
jobs:
make-test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
id: setup-python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install pipenv
run: python -m pip install --upgrade pipenv==2021.5.29 wheel
- name: Restore pipenv cache
id: cache-pipenv
uses: actions/cache@v2
with:
path: ./.venv
key: test-${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }}
- name: Install dependencies
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: pipenv install --deploy
- name: Run make test
run: pipenv run make test