Skip to content

Try using application default credentials (this definitely won't work) #60

Try using application default credentials (this definitely won't work)

Try using application default credentials (this definitely won't work) #60

Workflow file for this run

name: tests
on: push
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/[email protected]'
with:
workload_identity_provider: 'projects/569867470362/locations/global/workloadIdentityPools/github-actions/providers/github-actions'
service_account: '[email protected]'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Test with pytest
env:
EE_SERVICE_ACCOUNT: ${{ secrets.EE_SERVICE_ACCOUNT }}
run: |
hatch run test:all
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Run pre-commit hooks
uses: pre-commit/[email protected]