Browse Source

Add badge and coverage

pull/402/head
Simon Conseil 6 years ago
parent
commit
a3fd3be919
  1. 5
      .github/workflows/python-tests.yml
  2. 6
      README.rst
  3. 2
      tox.ini

5
.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

6
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

2
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 =

Loading…
Cancel
Save