Skip to content

Commit

Permalink
Added the actions/setup-python (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
athiruma authored Oct 16, 2024
1 parent 80ec6cc commit 2b85f0b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,15 @@ jobs:
runs-on: ubuntu-latest
outputs:
INSTANCE_ID: ${{ steps.terraform_instance_id.outputs.INSTANCE_ID }}
strategy:
matrix:
python-version: [ '3.12' ]
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 for creating EC2 instance
uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down Expand Up @@ -187,8 +194,15 @@ jobs:
needs: [ unittest, terraform_apply, integration ]
if: success() || failure()
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.12' ]
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 for pytest
uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,19 @@ jobs:
name: terraform_apply
needs: [ approve, unittest ]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.12' ]
outputs:
INSTANCE_ID: ${{ steps.terraform_instance_id.outputs.INSTANCE_ID }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Configure AWS credentials for pytest
uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down Expand Up @@ -188,12 +195,19 @@ jobs:
terraform_destroy:
name: terraform_destroy
needs: [ approve, unittest, terraform_apply, integration ]
strategy:
matrix:
python-version: [ '3.12' ]
if: success() || failure()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Configure AWS credentials for pytest
uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down

0 comments on commit 2b85f0b

Please sign in to comment.