Skip to content

Merge dev into main

Merge dev into main #3

name : CI Pipeline - MAIN
on:
workflow_dispatch:
push:
branches:
- main
env:
RELEASE_TYPE : 'major'
PACKAGE_NAME : 'osbot_gsuite'
GSUITE__OAUTH2__DATA : ${{ secrets.GSUITE__OAUTH2__DATA }}
GDRIVE__TEMP_FOLDER : ${{ secrets.GDRIVE__TEMP_FOLDER }}
jobs:
run-unit-tests:
name: "Run Unit tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/poetry__install@dev
with:
pip_install: '-r requirements-test.txt'
- name: Run Unit Tests
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/poetry__run-unit-tests@dev
with:
test_target: 'tests'
increment-tag:
name: Increment Tag - MAIN
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Increment Tag
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:
#if: False
name: "Publish to: PYPI"
permissions:
id-token: write
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