-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CI and switch to python 3.11 (#57)
- Loading branch information
1 parent
1fd6a0e
commit 5375ce4
Showing
5 changed files
with
35 additions
and
29 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,29 +6,33 @@ on: | |
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.10"] | ||
python-version: ["3.11"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- uses: pre-commit/[email protected] | ||
- uses: pre-commit/[email protected] | ||
|
||
- uses: google-github-actions/setup-gcloud@v0 | ||
- 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 & | ||
- 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 | ||
- run: pip install -r requirements.txt -r requirements-dev.txt | ||
- run: pytest --color=yes --datastore_emulated |
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
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
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
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