Add codecov part tp action
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
name: PyTest + Coverage
|
name: PyTest + Coverage
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [ main, dev ]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main, dev ]
|
branches: [ main, dev ]
|
||||||
|
|
||||||
@@ -16,7 +14,7 @@ jobs:
|
|||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
architecture: x64
|
architecture: x64
|
||||||
- name: Install Packages
|
- 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
|
- name: Checkout Source
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
@@ -30,3 +28,5 @@ jobs:
|
|||||||
pip install codecov
|
pip install codecov
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: xvfb-run pytest -v --cov=nw
|
run: xvfb-run pytest -v --cov=nw
|
||||||
|
- name: Upload to Codecov
|
||||||
|
uses: codecov/codecov-action@v1
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# novelWriter
|
# novelWriter
|
||||||
|
|
||||||
[](https://travis-ci.com/vkbo/novelWriter)
|
[](https://github.com/vkbo/novelWriter/actions)
|
||||||
[](https://codecov.io/gh/vkbo/novelWriter)
|
[](https://codecov.io/gh/vkbo/novelWriter)
|
||||||
[](https://novelwriter.readthedocs.io/en/latest/?badge=latest)
|
[](https://novelwriter.readthedocs.io/en/latest/?badge=latest)
|
||||||
[](https://github.com/vkbo/novelWriter/actions)
|
[](https://github.com/vkbo/novelWriter/actions)
|
||||||
|
|||||||
Reference in New Issue
Block a user