Skip to content

Commit 70d3bd0

Browse files
author
Matias Melograno
committed
Merge branch 'development' of github.com:splitio/python-client into development
2 parents a77f623 + a32fb27 commit 70d3bd0

File tree

4 files changed

+70
-65
lines changed

4 files changed

+70
-65
lines changed

.github/workflows/ci.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
- development
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
services:
15+
redis:
16+
image: redis
17+
ports:
18+
- 6379:6379
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v2
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@v2
27+
with:
28+
python-version: '3.7'
29+
30+
- name: Install dependencies
31+
run: |
32+
pip install -U setuptools pip
33+
pip install -e .[cpphash,redis,uwsgi]
34+
35+
- name: Run tests
36+
run: python setup.py test
37+
38+
- name: SonarQube Scan (Push)
39+
if: github.event_name == 'push'
40+
uses: SonarSource/sonarcloud-github-action@v1.5
41+
env:
42+
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
43+
with:
44+
projectBaseDir: .
45+
args: >
46+
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }}
47+
-Dsonar.projectName=${{ github.event.repository.name }}
48+
-Dsonar.projectKey=${{ github.event.repository.name }}
49+
-Dsonar.python.coverage.reportPaths=coverage.xml
50+
-Dsonar.links.ci="https://github.com/splitio/${{ github.event.repository.name }}/actions"
51+
-Dsonar.links.scm="https://github.com/splitio/${{ github.event.repository.name }}"
52+
53+
- name: SonarQube Scan (Pull Request)
54+
if: github.event_name == 'pull_request'
55+
uses: SonarSource/sonarcloud-github-action@v1.5
56+
env:
57+
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
58+
with:
59+
projectBaseDir: .
60+
args: >
61+
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }}
62+
-Dsonar.projectName=${{ github.event.repository.name }}
63+
-Dsonar.projectKey=${{ github.event.repository.name }}
64+
-Dsonar.python.coverage.reportPaths=coverage.xml
65+
-Dsonar.links.ci="https://github.com/splitio/${{ github.event.repository.name }}/actions"
66+
-Dsonar.links.scm="https://github.com/splitio/${{ github.event.repository.name }}"
67+
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
68+
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
69+
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}

.travis.yml

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

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
'pytest-mock>=3.5.1',
1111
'coverage',
1212
'pytest-cov',
13+
'importlib-metadata==4.2'
1314
]
1415

1516
INSTALL_REQUIRES = [

sonar-scanner.sh

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

0 commit comments

Comments
 (0)