Skip to content

Commit 0bc4796

Browse files
authored
Update GA workflow files for the 4.2.z branch (#495)
While sending a PR to the 4.2.z branch, I saw that it uses the GA workflows defined in that branch, so I am updating the test runner and jira trigger workflows so that, the test runner creates jobs that would pass the merge checks. The only difference between this test runner and the one in the master is that, this one does not check broken links in the readme.
1 parent da647b8 commit 0bc4796

File tree

3 files changed

+110
-77
lines changed

3 files changed

+110
-77
lines changed

.github/workflows/CodeCoverageReport.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/jira_trigger.yml

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,36 @@
11
on:
22
issues:
3-
types: [labeled]
4-
3+
types: [ labeled ]
54
name: Create Issue from Label
6-
75
jobs:
86
build:
97
if: ${{ github.event.label.name == 'to-jira' }}
108
runs-on: ubuntu-latest
119
name: Create Issue
1210
steps:
13-
- name: Checkout
14-
uses: actions/checkout@master
15-
16-
- name: Login
17-
uses: atlassian/gajira-login@master
18-
env:
19-
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
20-
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
21-
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
22-
23-
- name: Create
24-
id: create
25-
uses: atlassian/gajira-create@master
26-
with:
27-
project: API
28-
issuetype: Bug
29-
summary: |
30-
${{ github.event.issue.title }} [GH-${{ github.event.issue.number }}]
31-
description: |
32-
*URL:* ${{ github.event.issue.html_url }}
33-
*Created By:* ${{ github.event.issue.user.login }}
34-
${{ github.event.issue.body }}
35-
fields: '{"labels": ["GitHub","Python"]}'
36-
- name: Transition Issue
37-
uses: atlassian/gajira-transition@master
38-
with:
39-
issue: ${{ steps.create.outputs.issue }}
40-
transition: "To Do"
11+
- name: Checkout
12+
uses: actions/checkout@master
13+
- name: Login
14+
uses: atlassian/gajira-login@master
15+
env:
16+
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
17+
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
18+
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
19+
- name: Create
20+
id: create
21+
uses: atlassian/gajira-create@master
22+
with:
23+
project: API
24+
issuetype: Bug
25+
summary: |
26+
${{ github.event.issue.title }} [GH-${{ github.event.issue.number }}]
27+
description: |
28+
*URL:* ${{ github.event.issue.html_url }}
29+
*Created By:* ${{ github.event.issue.user.login }}
30+
${{ github.event.issue.body }}
31+
fields: '{"labels": ["GitHub","Python"]}'
32+
- name: Transition Issue
33+
uses: atlassian/gajira-transition@master
34+
with:
35+
issue: ${{ steps.create.outputs.issue }}
36+
transition: "To Do"

.github/workflows/test_runner.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: Run tests
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- 4.*.z
7+
pull_request:
8+
branches:
9+
- master
10+
- 4.*.z
11+
jobs:
12+
run-tests:
13+
runs-on: ${{ matrix.os }}
14+
name: Run tests with Python ${{ matrix.python-version }} on ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
python-version: [ 2.7, 3.9 ]
18+
os: [ ubuntu-latest, windows-latest ]
19+
fail-fast: false
20+
steps:
21+
- name: Setup Python
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install JDK
26+
uses: actions/setup-java@v2
27+
with:
28+
distribution: 'adopt'
29+
java-version: '8'
30+
- name: Checkout to code
31+
uses: actions/checkout@v2
32+
- name: Install dependencies
33+
run: |
34+
pip install -r requirements-test.txt
35+
- name: Run tests
36+
env:
37+
HAZELCAST_ENTERPRISE_KEY: ${{ secrets.HAZELCAST_ENTERPRISE_KEY }}
38+
run: python run_tests.py
39+
- name: Upload remote controller logs on test failure
40+
uses: actions/upload-artifact@v2
41+
if: failure()
42+
with:
43+
name: rc-logs-${{ matrix.python-version }}-${{ matrix.os }}
44+
path: |
45+
rc_stderr.log
46+
rc_stdout.log
47+
- name: Publish results to Codecov
48+
uses: codecov/codecov-action@v1
49+
with:
50+
files: ./coverage.xml
51+
run-linter:
52+
runs-on: ubuntu-latest
53+
name: Run black to check the code style
54+
steps:
55+
- name: Setup Python
56+
uses: actions/setup-python@v2
57+
with:
58+
python-version: 3.9
59+
- name: Checkout to code
60+
uses: actions/checkout@v2
61+
- name: Install dependencies
62+
run: |
63+
pip install -r requirements-dev.txt
64+
- name: Run black
65+
run: |
66+
black --check --config black.toml .
67+
generate_docs:
68+
runs-on: ubuntu-latest
69+
name: Generate documentation
70+
steps:
71+
- name: Setup Python
72+
uses: actions/setup-python@v2
73+
with:
74+
python-version: 3.9
75+
- name: Checkout to code
76+
uses: actions/checkout@v2
77+
- name: Install dependencies
78+
run: |
79+
pip install -r requirements-dev.txt
80+
- name: Generate documentation
81+
working-directory: docs
82+
run: |
83+
make html SPHINXOPTS="-W --keep-going"

0 commit comments

Comments
 (0)