From 06e5f93c350eccd29775689e2c49643a43772aa1 Mon Sep 17 00:00:00 2001 From: Andrey Kislyuk Date: Sun, 7 Jun 2020 18:33:25 -0700 Subject: [PATCH] Use GitHub Actions --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ .travis.yml | 29 ----------------------------- README.rst | 4 ++-- 3 files changed, 31 insertions(+), 31 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..ee46997 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: Test suite + +on: [push] + +jobs: + unit_tests: + runs-on: ${{ matrix.os }} + strategy: + max-parallel: 8 + matrix: + os: [ubuntu-18.04, macos-10.15] + python-version: [2.7, 3.5, 3.6, 3.7, 3.8] + 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 + run: | + [[ $(uname) == Linux ]] && sudo apt-get install --no-install-recommends python3-openssl python3-lxml + pip install coverage wheel + make install + - name: Test + run: | + make test + - name: Upload coverage data + run: | + bash <(curl -s https://codecov.io/bash) diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1f530e5..0000000 --- a/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -language: python -sudo: required -cache: pip - -python: - - 2.7 - - 3.5 - - 3.6 - - 3.7 - - 3.8 - - pypy - - pypy3 - -matrix: - include: - - language: generic - python: 2.7 - os: osx - -install: - - make install - -script: - - make test - -after_success: - - bash <(curl -s https://codecov.io/bash) - -sudo: false diff --git a/README.rst b/README.rst index 2b2397d..8888f26 100644 --- a/README.rst +++ b/README.rst @@ -178,8 +178,8 @@ License ------- Licensed under the terms of the `Apache License, Version 2.0 `_. -.. image:: https://img.shields.io/travis/XML-Security/signxml.svg - :target: https://travis-ci.org/XML-Security/signxml +.. image:: https://github.com/XML-Security/signxml/workflows/Test%20suite/badge.svg + :target: https://github.com/XML-Security/signxml/actions .. image:: https://codecov.io/github/XML-Security/signxml/coverage.svg?branch=master :target: https://codecov.io/github/XML-Security/signxml?branch=master .. image:: https://img.shields.io/pypi/v/signxml.svg