From b6d74a46e05a292c23e861f5e21e5dd4f361e4c4 Mon Sep 17 00:00:00 2001 From: Andrey Kislyuk Date: Fri, 24 Apr 2020 21:09:47 -0700 Subject: [PATCH] Switch to github actions --- .github/workflows/pythonpackage.yml | 27 +++++++++++++++++++++++++++ .travis.yml | 22 ---------------------- README.rst | 4 ++-- 3 files changed, 29 insertions(+), 24 deletions(-) create mode 100644 .github/workflows/pythonpackage.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml new file mode 100644 index 0000000..0e5932f --- /dev/null +++ b/.github/workflows/pythonpackage.yml @@ -0,0 +1,27 @@ +name: Python package + +on: [push] + +jobs: + build: + + runs-on: ubuntu-18.04 + strategy: + max-parallel: 4 + matrix: + python-version: [3.5, 3.6, 3.7] + + steps: + - uses: actions/checkout@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + pip install codecov wheel cryptography + pip install . + - name: Test + run: | + make test + bash <(curl -s https://codecov.io/bash) diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 37b6f37..0000000 --- a/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: python -python: - - 3.4 - - 3.5 - - 3.6 - - 3.7 - - nightly - -dist: trusty -sudo: false - -before_install: - - pip install --quiet codecov wheel cryptography - -install: - - make install - -script: - - make test - -after_success: - - bash <(curl -s https://codecov.io/bash) diff --git a/README.rst b/README.rst index 48f0f9c..6833978 100644 --- a/README.rst +++ b/README.rst @@ -70,8 +70,8 @@ License ------- Licensed under the terms of the `Apache License, Version 2.0 `_. -.. image:: https://travis-ci.org/kislyuk/requests-http-signature.png - :target: https://travis-ci.org/kislyuk/requests-http-signature +.. image:: https://github.com/pyauth/requests-http-signature/workflows/Python%20package/badge.svg + :target: https://github.com/pyauth/requests-http-signature/actions .. image:: https://codecov.io/github/kislyuk/requests-http-signature/coverage.svg?branch=master :target: https://codecov.io/github/kislyuk/requests-http-signature?branch=master .. image:: https://img.shields.io/pypi/v/requests-http-signature.svg