-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (55 loc) · 1.74 KB
/
pr-to-master.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Pull Request to Master - Validation
# Controls when the workflows will run
on:
pull_request:
types:
- opened
- synchronize
branches: [ master ]
workflow_dispatch:
# Allows you to run these workflows manually from the Actions tab
jobs:
########### Unit Tests and Code Coverage
run-tests:
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write # only needed unless run with comment_mode: off
#contents: read # only needed for private repository
#issues: read # only needed for private repository
steps:
- name: Download Repository
uses: actions/checkout@v2
- name: Run PyTest
uses: ./.github/actions/pytest
########### Static code analysis
static-code-analysis:
runs-on: ubuntu-latest
steps:
- name: Download Repository
uses: actions/checkout@v2
- name: static code analysis
uses: ./.github/actions/mypy
########### Check if we have already released the current version
check-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: check version
id: check_version
uses: ./.github/actions/check-version-poetry
- name: fail if exists
if: ${{ steps.check_version.outputs.is_released == 'true'}}
run: |
echo "Tag ${{ steps.check_version.outputs.version }} already exists. Kindly update setup.cfg with a new version"
exit 1
########### Test Doc Build
doc-build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: doc build
uses: ./.github/actions/doc-deploy
with:
cicd_token: ${{ secrets.CICD_TOKEN}}
only_build: true