-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (52 loc) · 1.74 KB
/
ci-pipeline__dev.yml
File metadata and controls
60 lines (52 loc) · 1.74 KB
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
name: CI Pipeline - DEV
on:
workflow_dispatch:
push:
branches:
- dev
env:
GIT__BRANCH : 'dev'
RELEASE_TYPE : 'minor'
PACKAGE_NAME : 'osbot_fast_api_serverless'
jobs:
run-tests:
name: "Run tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 # Checkout the code in dev branch
- name: Start Local Stack
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/docker__local-stack@dev # start LocalStack in GitHub actions
with:
LOCAL_STACK_SERVICES: 's3,lambda,iam,logs'
- name: "run-tests"
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/pytest__run-tests@dev # run tests (which use Local Stack)
with:
test_target: "tests/unit"
env:
FAST_API__AUTH__API_KEY__NAME : 'api-key__in_github_test'
FAST_API__AUTH__API_KEY__VALUE : 'this-is-the-value-of-the-api-key'
increment-tag:
name: Increment Tag - DEV
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-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__twine__publish@dev
needs:
- increment-tag