-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (32 loc) · 1.09 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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