From 713e2185b090b39cd81e9fd1f7a806940b838d9e Mon Sep 17 00:00:00 2001 From: Nathan Booker Date: Thu, 7 Jul 2022 11:14:55 -0500 Subject: [PATCH] Move tests to GH actions --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ .travis.yml | 5 ----- README.rst | 2 +- 3 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8c83df1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: continuous-integration + +on: + pull_request: + branches: [master] + push: + branches: [master] + +jobs: + tests: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [windows-latest, ubuntu-latest, macos-latest] + python-version: [3.7, 3.8, 3.9] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install Python dependencies + uses: py-actions/py-dependency-install@v3 + - name: Run Tests + run: nosetests -a '!broken' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6704df5..0000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: python -python: - - "3.8" - - "3.9" -script: nosetests -a '!broken' diff --git a/README.rst b/README.rst index 2c9daca..ce1ce9b 100644 --- a/README.rst +++ b/README.rst @@ -6,7 +6,7 @@ Bigcommerce API Python Client Wrapper over the ``requests`` library for communicating with the Bigcommerce v2 API. Install with ``pip install bigcommerce`` or ``easy_install bigcommerce``. Tested with -python 3.8, and only requires ``requests`` and ``pyjwt``. +python 3.7-3.9, and only requires ``requests`` and ``pyjwt``. Usage -----