Switch to github actions

pull/21/head
Andrey Kislyuk 2020-04-24 21:09:47 -07:00
parent f814088b6a
commit b6d74a46e0
No known key found for this signature in database
GPG Key ID: 8AFAFCD242818A52
3 changed files with 29 additions and 24 deletions

27
.github/workflows/pythonpackage.yml vendored Normal file
View File

@ -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)

View File

@ -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)

View File

@ -70,8 +70,8 @@ License
-------
Licensed under the terms of the `Apache License, Version 2.0 <http://www.apache.org/licenses/LICENSE-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