Skip to content

CI

CI #154

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
schedule:
# Run every Monday at 18:00 UTC (middle of US working hours) to ensure re-running
# tests with the latest dependencies.
# * is a special character in YAML so you have to quote this string
- cron: "0 18 * * 1"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: pre-commit/[email protected]
- uses: google-github-actions/setup-gcloud@v2
- name: Start GCP Datastore emulator
# NOTE: this emulator is used by the tests below
run: |
gcloud components install --quiet beta cloud-datastore-emulator
gcloud beta emulators datastore start --project foobar --host-port 127.0.0.1:8099 --consistency=1.0 --no-store-on-disk &
- run: pip install -r requirements.txt -r requirements-dev.txt
- run: pytest --color=yes --datastore_emulated