google.cloud.datastore: fix add_filter warnings #141
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: pre-commit/action@v3.0.0 | |
- 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 |