Skip to content
This repository was archived by the owner on Jul 5, 2024. It is now read-only.

Commit 04fca67

Browse files
Merge branch 'master' into reduce-dependencies
2 parents 09884f6 + f1367cf commit 04fca67

File tree

2 files changed

+44
-16
lines changed

2 files changed

+44
-16
lines changed

.github/workflows/python-ci.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,3 @@ jobs:
2929
run: |
3030
pip install pytest
3131
python -m pytest -v --cov=./TSIClient --cov-report xml --cov-report term
32-
- name: fix code coverage paths
33-
working-directory: .
34-
run: |
35-
sed -i 's/\/home\/runner\/work\/TSIClient\/TSIClient\//\/github\/workspace\//g' coverage.xml
36-
- name: SonarCloud Scan
37-
uses: sonarsource/sonarcloud-github-action@master
38-
with:
39-
args: >
40-
-Dsonar.organization=raalabs
41-
-Dsonar.projectKey=RaaLabs_TSIClient
42-
-Dsonar.python.coverage.reportPaths=coverage.xml
43-
-Dsonar.sources=TSIClient
44-
-Dsonar.tests=tests
45-
env:
46-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/sonarcloud.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: SonarCloud
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: [3.6]
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Setting up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Installing dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -r requirements.txt
25+
- name: Running unit tests
26+
run: |
27+
pip install pytest
28+
python -m pytest -v --cov=./TSIClient --cov-report xml --cov-report term
29+
- name: fix code coverage paths
30+
working-directory: .
31+
run: |
32+
sed -i 's/\/home\/runner\/work\/TSIClient\/TSIClient\//\/github\/workspace\//g' coverage.xml
33+
- name: SonarCloud Scan
34+
uses: sonarsource/sonarcloud-github-action@master
35+
with:
36+
args: >
37+
-Dsonar.organization=raalabs
38+
-Dsonar.projectKey=RaaLabs_TSIClient
39+
-Dsonar.python.coverage.reportPaths=coverage.xml
40+
-Dsonar.sources=TSIClient
41+
-Dsonar.tests=tests
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)