Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
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
- 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: SonarCloud
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
47 changes: 47 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Deploy Connect Python SDK

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- 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: SonarCloud
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
51 changes: 0 additions & 51 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Connect Python SDK

![pyversions](https://img.shields.io/pypi/pyversions/connect-sdk.svg) [![PyPi Status](https://img.shields.io/pypi/v/connect-sdk.svg)](https://pypi.org/project/connect-sdk/) [![codecov](https://codecov.io/gh/cloudblue/connect-python-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/cloudblue/connect-python-sdk) [![Build Status](https://travis-ci.org/cloudblue/connect-python-sdk.svg?branch=master)](https://travis-ci.org/cloudblue/connect-python-sdk) [![PyPI status](https://img.shields.io/pypi/status/connect-sdk.svg)](https://pypi.python.org/pypi/connect-sdk/) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=connectpythonsdk&metric=alert_status)](https://sonarcloud.io/dashboard?id=connectpythonsdk)
![pyversions](https://img.shields.io/pypi/pyversions/connect-sdk.svg) [![PyPi Status](https://img.shields.io/pypi/v/connect-sdk.svg)](https://pypi.org/project/connect-sdk/) [![codecov](https://codecov.io/gh/cloudblue/connect-python-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/cloudblue/connect-python-sdk) [![Build Status](https://github.com/cloudblue/connect-python-sdk/workflows/Build%20Connect%20Python%20SDK/badge.svg)](https://github.com/cloudblue/connect-python-sdk/actions) [![PyPI status](https://img.shields.io/pypi/status/connect-sdk.svg)](https://pypi.python.org/pypi/connect-sdk/) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=connectpythonsdk&metric=alert_status)](https://sonarcloud.io/dashboard?id=connectpythonsdk)

Connect Python SDK allows an easy and fast integration with Connect fulfillment API. Thanks to it you can automate the fulfillment of orders generated by your products.

Expand Down
1 change: 0 additions & 1 deletion connect/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
'UsageAutomation',
'UsageFileAutomation',
'TierAccountRequestAutomation',
'Subscription',
'BillingRequest',
'RecurringAsset',
'AssetRequestResource'
Expand Down