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
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: softlayer
name: documentation

on:
push:
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5,3.6,3.7,3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tools/test-requirements.txt
- name: Tox Test
run: tox -e py
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tools/test-requirements.txt
- name: Tox Coverage
run: tox -e coverage
analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tools/test-requirements.txt
- name: Tox Analysis
run: tox -e analysis
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

7 changes: 5 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
SoftLayer API Python Client
===========================
.. image:: https://travis-ci.org/softlayer/softlayer-python.svg?branch=master
:target: https://travis-ci.org/softlayer/softlayer-python
.. image:: https://github.com/softlayer/softlayer-python/workflows/Tests/badge.svg
:target: https://github.com/softlayer/softlayer-python/actions?query=workflow%3ATests

.. image:: https://github.com/softlayer/softlayer-python/workflows/documentation/badge.svg
:target: https://github.com/softlayer/softlayer-python/actions?query=workflow%3Adocumentation

.. image:: https://landscape.io/github/softlayer/softlayer-python/master/landscape.svg
:target: https://landscape.io/github/softlayer/softlayer-python/master
Expand Down
4 changes: 2 additions & 2 deletions SoftLayer/CLI/ticket/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Support tickets."""
import re

import click
import re

from SoftLayer.CLI import formatting

Expand All @@ -17,7 +17,7 @@
]


def get_ticket_results(mgr, ticket_id, is_json = False, update_count=1):
def get_ticket_results(mgr, ticket_id, is_json=False, update_count=1):
"""Get output about a ticket.

:param integer id: the ticket ID
Expand Down
2 changes: 1 addition & 1 deletion SoftLayer/CLI/ticket/detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def cli(env, identifier, count):
"""Get details for a ticket."""

is_json = False
if (env.format == 'json'):
if env.format == 'json':
is_json = True
mgr = SoftLayer.TicketManager(env.client)

Expand Down