Skip to content

Automatic replacement of '202x Ingram Micro' for '2025 CloudBlue' #37

Automatic replacement of '202x Ingram Micro' for '2025 CloudBlue'

Automatic replacement of '202x Ingram Micro' for '2025 CloudBlue' #37

Workflow file for this run

name: Build Connect Python SDK
on:
push:
branches: "*"
tags:
- '*'
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/test.txt
pip install -r requirements/sdk.txt
pip install pytest-cov
- name: Linting
run: |
flake8 connect
- name: Testing
run: |
pytest --cov-report=xml --cov=./connect
sed -i "s/version='0.0.0'/version='${TRAVIS_TAG}'/g" setup.py
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
fail_ci_if_error: true
verbose: true
- name: Fix coverage report for Sonar
run: |
sed -i 's/\/home\/runner\/work\/connect-python-sdk\/connect-python-sdk\//\/github\/workspace\//g' coverage.xml
- name: SonarCloud
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}