Build and test #6296
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: Build and test | |
permissions: | |
contents: read | |
id-token: write | |
defaults: | |
run: | |
shell: bash | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '37 22 * * *' | |
jobs: | |
gha: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-13-arm64] | |
python-version: ["3.12"] | |
steps: | |
# actions/checkout MUST come before auth | |
- uses: actions/checkout@v3 | |
- id: auth | |
name: Authenticate to Google Cloud | |
uses: google-github-actions/auth@v1 | |
with: | |
workload_identity_provider: projects/318417991012/locations/global/workloadIdentityPools/gha-pool/providers/gha-provider | |
service_account: [email protected] | |
token_format: access_token | |
- name: Python packages | |
run: | | |
python3 -m pip install google-auth | |
python3 -m pip install requests | |
- name: USE GOOGLE SERVICES | |
run: | | |
python3 src/test.py |