Skip to content

Commit a28ba97

Browse files
authored
Merge pull request #40 from cloudblue/fix-build-pipeline
Fix build pipeline
2 parents 47eb49d + 1a58090 commit a28ba97

File tree

1 file changed

+30
-8
lines changed

1 file changed

+30
-8
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,47 @@ on:
1010

1111
jobs:
1212
build:
13+
name: Build and test on Python ${{ matrix.python-version }}
1314
runs-on: ubuntu-latest
1415
strategy:
1516
matrix:
16-
python-version: [3.6, 3.7, 3.8, 3.9, 3.10.1]
17+
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
1718
steps:
18-
- uses: actions/checkout@v2
19+
- name: Checkout project
20+
uses: actions/checkout@v2
21+
with:
22+
fetch-depth: 0
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Install dependencies
28+
run: |
29+
pip install -r requirements/dev.txt
30+
pip install -r requirements/test.txt
31+
- name: Linting
32+
run: |
33+
flake8
34+
- name: Testing
35+
run: |
36+
python setup.py test
37+
sonar:
38+
name: Quality Analysis by sonar
39+
needs: [build]
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Checkout project
43+
uses: actions/checkout@v2
1944
with:
2045
fetch-depth: 0
21-
- name: Set up Python ${{ matrix.python-version }}
46+
- name: Set up Python 3.10
2247
uses: actions/setup-python@v2
2348
with:
24-
python-version: ${{ matrix.python-version }}
49+
python-version: '3.10'
2550
- name: Install dependencies
2651
run: |
2752
pip install -r requirements/dev.txt
2853
pip install -r requirements/test.txt
29-
- name: Linting
30-
run: |
31-
flake8
3254
- name: Testing
3355
run: |
3456
python setup.py test
@@ -49,7 +71,7 @@ jobs:
4971
- name: Wait sonar to process report
5072
uses: jakejarvis/wait-action@master
5173
with:
52-
time: '120s'
74+
time: '15s'
5375
- name: SonarQube Quality Gate check
5476
uses: sonarsource/sonarqube-quality-gate-action@master
5577
timeout-minutes: 5

0 commit comments

Comments
 (0)