Skip to content

Commit

Permalink
ci file added
Browse files Browse the repository at this point in the history
  • Loading branch information
Poonam Shinde authored and Poonam Shinde committed Dec 12, 2023
1 parent 3d0dd6e commit f624648
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/py-podcast-parser-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: py-podcast-parser-ci

on:
push:
branches-ignore:
- "master"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
strategy:
matrix:
python-version: ["3.9"]
steps:
- name: Send GitHub Action trigger data to Slack workflow
id: slack
uses: voxmedia/github-action-slack-notify-build@v1
with:
channel: cp-github
status: STARTED
color: good
env:
SLACK_BOT_TOKEN: ${{ secrets.CONTENT_PLATFORM_SLACK_GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v1
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::827541288795:role/content-github-actions-nonprod
aws-region: us-east-1
role-duration-seconds: 1200

- name: Setting up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Installing Dependencies
run: |
pip install pip --upgrade
pip install tox-gh
pip install virtualenv
- name: Tox
run: |
cp settings.ini.example settings.ini
CODEARTIFACT_AUTH_TOKEN=$(aws codeartifact get-authorization-token --domain content-platform --domain-owner 827541288795 --query authorizationToken --output text) && pip config set global.extra-index-url https://aws:$CODEARTIFACT_AUTH_TOKEN@content-platform-827541288795.d.codeartifact.us-east-1.amazonaws.com/pypi/content-platform/simple/
python -m tox --verbose
env:
CODEARTIFACT_AUTH_TOKEN: $CODEARTIFACT_AUTH_TOKEN

0 comments on commit f624648

Please sign in to comment.