From a3fd3be91984a19bbb4d3bbeafbf1d3e2a603d7c Mon Sep 17 00:00:00 2001 From: Simon Conseil Date: Sun, 4 Oct 2020 19:32:21 -0300 Subject: [PATCH] Add badge and coverage --- .github/workflows/python-tests.yml | 5 +++-- README.rst | 6 +++--- tox.ini | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index bdc654e..11a68b3 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -17,7 +17,6 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - fail-fast: false python-version: [3.6, 3.7, 3.8, pypy3] steps: @@ -34,7 +33,9 @@ jobs: run: python -m pip install tox tox-gh-actions - name: Run Tox run: tox + - name: Convert coverage + run: python -m coverage xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 with: - file: ./coverage.xml + fail_ci_if_error: true diff --git a/README.rst b/README.rst index be7bec1..27ca6d7 100644 --- a/README.rst +++ b/README.rst @@ -1,9 +1,9 @@ Sigal - Simple Static Gallery Generator ======================================= -.. image:: https://secure.travis-ci.org/saimn/sigal.png?branch=master - :target: https://travis-ci.org/saimn/sigal - :alt: Travis-ci: continuous integration status. +.. image:: https://github.com/saimn/sigal/workflows/CI/badge.svg?branch=master + :target: https://github.com/saimn/sigal/actions?workflow=CI + :alt: CI Status .. image:: https://codecov.io/gh/saimn/sigal/branch/master/graph/badge.svg :target: https://codecov.io/gh/saimn/sigal diff --git a/tox.ini b/tox.ini index e51d355..44af624 100644 --- a/tox.ini +++ b/tox.ini @@ -16,7 +16,7 @@ deps = extras = all tests -commands = pytest --cov sigal --cov-report term --cov-report=xml tests/ +commands = pytest --cov sigal --cov-report term tests/ [testenv:check] deps =