Skip to content

Commit

Permalink
updated ci
Browse files Browse the repository at this point in the history
  • Loading branch information
joeygrable94 committed Oct 31, 2024
1 parent ad14708 commit 6403a4b
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ on:
branches: [ "prod" ]
workflow_dispatch:

permissions:
id-token: write
contents: read

jobs:
test:
runs-on: ${{ matrix.os }}
permissions:
id-token: write
contents: read
environment: GCAPI-Backend
strategy:
fail-fast: true
Expand Down Expand Up @@ -84,6 +83,11 @@ jobs:
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ secrets.CLOUDKEY_AWS_DEFAULT_REGION }}
role-to-assume: ${{ secrets.AWS_GITHUB_OIDC_ROLE_ARN }}
- name: Setup Python
uses: actions/setup-python@v5
with:
Expand All @@ -95,11 +99,6 @@ jobs:
&& python -m pip install poetry \
&& poetry config virtualenvs.create false \
&& poetry install --no-root
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ secrets.CLOUDKEY_AWS_DEFAULT_REGION }}
role-to-assume: ${{ secrets.AWS_GITHUB_OIDC_ROLE_ARN }}
- name: Load AWS Account
run: aws sts get-caller-identity
- name: Run Python Tests
Expand Down

0 comments on commit 6403a4b

Please sign in to comment.