Skip to content

Commit

Permalink
adding integ test workflow skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
krneta committed Mar 22, 2024
1 parent b52fb3e commit 77a897e
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/integ-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Integration Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

env:
REGION : "us-west-2"
REPOSITORY_NAME : ${{ secrets.repository_name }}
ACCOUNT_ID : ${{ secrets.account_id }}

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
python-version: ["3.10"]
container-type: ["base"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ env.ACCOUNT_ID }:role/GitHubIntegTestRole
role-session-name: github_role_session
aws-region: ${{ env.AWS_REGION }
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r test/requirements.txt
- name: Run unit tests
run: |
aws s3 ls s3://${{ env.BUCKET_NAME }}/

0 comments on commit 77a897e

Please sign in to comment.