From 15757a745b1cbf64a205c8f941e5f76d78138e9b Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Thu, 20 Aug 2020 21:07:11 +0200 Subject: [PATCH] Add codecov part tp action --- .github/workflows/pytest_cov.yml | 6 +++--- README.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pytest_cov.yml b/.github/workflows/pytest_cov.yml index 8a5ceff9..7f829bc6 100644 --- a/.github/workflows/pytest_cov.yml +++ b/.github/workflows/pytest_cov.yml @@ -1,8 +1,6 @@ name: PyTest + Coverage on: - push: - branches: [ main, dev ] pull_request: branches: [ main, dev ] @@ -16,7 +14,7 @@ jobs: python-version: 3.8 architecture: x64 - name: Install Packages - run: sudo apt install xvfb libenchant-dev qt5-default # python3-pyqt5 python3-pyqt5.qtsvg python3-lxml + run: sudo apt install xvfb libenchant-dev qt5-default - name: Checkout Source uses: actions/checkout@v2 - name: Install Dependencies @@ -30,3 +28,5 @@ jobs: pip install codecov - name: Run Tests run: xvfb-run pytest -v --cov=nw + - name: Upload to Codecov + uses: codecov/codecov-action@v1 diff --git a/README.md b/README.md index 3c60e951..7adc676f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # novelWriter -[![Build Status](https://travis-ci.com/vkbo/novelWriter.svg?branch=main)](https://travis-ci.com/vkbo/novelWriter) +[![PyTest + Coverage](https://github.com/vkbo/novelWriter/workflows/PyTest%20+%20Coverage/badge.svg?branch=main)](https://github.com/vkbo/novelWriter/actions) [![codecov](https://codecov.io/gh/vkbo/novelWriter/branch/main/graph/badge.svg)](https://codecov.io/gh/vkbo/novelWriter) [![Documentation Status](https://readthedocs.org/projects/novelwriter/badge/?version=latest)](https://novelwriter.readthedocs.io/en/latest/?badge=latest) [![Flake8 Checks](https://github.com/vkbo/novelWriter/workflows/Flake8%20Checks/badge.svg)](https://github.com/vkbo/novelWriter/actions)