Skip to content

Commit

Permalink
chore: add: mac to github workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Jericho Tolentino <jericht@amazon.com>
  • Loading branch information
jericht committed Sep 5, 2023
1 parent 0de6722 commit 2e03cff
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/reuse_python_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ on:

jobs:
Python:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
permissions:
id-token: write
contents: read
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
os: [ubuntu-latest, macOS-latest]
env:
PYTHON: ${{ matrix.python-version }}
CODEARTIFACT_REGION: "us-west-2"
Expand All @@ -25,7 +26,7 @@ jobs:
steps:
- uses: actions/checkout@v3
if: ${{ !inputs.branch }}

- uses: actions/checkout@v3
if: ${{ inputs.branch }}
with:
Expand All @@ -36,14 +37,15 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.AWS_CODEARTIFACT_ROLE }}
aws-region: us-west-2

- name: Install Hatch
shell: bash
run: |
CODEARTIFACT_AUTH_TOKEN=$(aws codeartifact get-authorization-token --domain ${{ secrets.CODEARTIFACT_DOMAIN }} --domain-owner ${{ secrets.CODEARTIFACT_ACCOUNT_ID }} --query authorizationToken --output text --region us-west-2)
echo "::add-mask::$CODEARTIFACT_AUTH_TOKEN"
Expand All @@ -57,4 +59,4 @@ jobs:
run: hatch build

- name: Run Tests
run: hatch run test
run: hatch run test -- -vv

0 comments on commit 2e03cff

Please sign in to comment.