-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (50 loc) · 1.52 KB
/
ci-pipeline__main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name : CD Pipeline - MAIN
on:
push:
branches:
- main
env:
GIT__BRANCH : 'main'
PACKAGE_NAME : 'osbot_utils'
RELEASE_TYPE : 'major'
jobs:
run-unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Unit Tests (using Pytest)
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/pytest__run-tests@dev
# steps:
# - uses: actions/checkout@v4
#
# - 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
increment-tag:
name: Increment Tag - MAIN
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Increment Tag (for MAIN)
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