refactored in couple methods to S3__DB_Base #92
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name : CI Pipeline - DEV | |
on: | |
push: | |
branches: | |
- dev | |
env: | |
GIT__BRANCH : 'dev' | |
PACKAGE_NAME : 'osbot_aws' | |
RELEASE_TYPE : 'minor' | |
jobs: | |
run-unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Start MinIO Server | |
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/docker__minio@dev | |
- name: Start DynamoDB Local Server | |
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/docker__dynamo-db@dev | |
- name: Start Local Stack | |
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/docker__local-stack@dev | |
with: | |
LOCAL_STACK_SERVICES: 's3,lambda,iam,cloudwatch,dynamodb,logs,sts,ec2' | |
- name: Poetry - Install Dependencies | |
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/poetry__install@dev | |
with: | |
pip_install: '-r requirements-test.txt' | |
- name: Run Unit Tests (using Poetry) | |
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/poetry__run-unit-tests@dev | |
- name: Run Integrations Tests (using Poetry) | |
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/poetry__run-unit-tests@dev | |
with: | |
test_target: 'tests/integration' | |
env: | |
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION : ${{ secrets.AWS_DEFAULT_REGION }} | |
AWS_ACCOUNT_ID : ${{ secrets.AWS_ACCOUNT_ID }} | |
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }} | |
increment-tag: | |
name: Increment Tag - DEV | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Increment Tag (for DEV) | |
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/git__increment-tag@dev | |
with: | |
release_type: ${{env.RELEASE_TYPE}} | |
needs: | |
- run-unit-tests | |
publish-to-pypi: | |
permissions: | |
id-token: write | |
name: "Publish to PYPI" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Git Update Current Branch | |
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/git__update_branch@dev | |
- name: publish-to-pypi | |
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/pypi__publish@dev | |
needs: | |
- increment-tag | |