-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (37 loc) · 1 KB
/
helloworld.yaml
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
39
40
41
42
43
44
45
46
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