-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (38 loc) · 1.26 KB
/
gsy-framework_ci.yaml
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
name: gsy-framework-ci
on:
pull_request:
jobs:
test-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Parse gsy-web branch
env:
prBody: ${{ github.event.pull_request.body }}
run: |
echo "PARSED_GSY_WEB_BRANCH=$(echo -e $prBody | sed -n 's/.*\*\*GSY_WEB_BRANCH\*\*=\([^ ]*\).*/\1/p')"
id: parse_gsy_web_branch
- name: validate parsed gsy web tests branch
env:
PARSED_GSY_WEB_BRANCH: ${{ steps.parse_gsy_web_branch.outputs.PARSED_GSY_WEB_BRANCH }}
run: |
echo "GSY_WEB_BRANCH=${PARSED_GSY_WEB_BRANCH:-master}"
id: validated_gsy_web_branch
- name: Install dependencies
env:
TOXENV: ci
GITHUB_ACCESS_TOKEN: ${{ secrets.GSYDEV_TOKEN }}
TARGET_BRANCH: ${{ steps.validated_gsy_web_branch.outputs.GSY_WEB_BRANCH }}
run: |
pip install tox==3.24.4
tox -e $TOXENV
- name: Check coverage with Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN_GSY_FRAMEWORK }}
fail_ci_if_error: true
verbose: true