mirror of
https://github.com/quantum5/win2xcur.git
synced 2025-04-24 10:11:57 -04:00
Add coverage
This commit is contained in:
parent
03cbbc1034
commit
621c1015f6
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
|
@ -19,7 +19,7 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install flake8 flake8-import-order mypy wheel
|
pip install flake8 flake8-import-order mypy wheel coverage
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
sudo apt-get install x11-apps
|
sudo apt-get install x11-apps
|
||||||
- name: Lint with flake8
|
- name: Lint with flake8
|
||||||
|
@ -32,12 +32,15 @@ jobs:
|
||||||
run: pip install dist/*.whl
|
run: pip install dist/*.whl
|
||||||
- name: Test with sample/crosshair.cur
|
- name: Test with sample/crosshair.cur
|
||||||
run: |
|
run: |
|
||||||
win2xcur sample/crosshair.cur -o /tmp
|
coverage run -m win2xcur.main sample/crosshair.cur -o /tmp
|
||||||
ls -l /tmp/crosshair
|
ls -l /tmp/crosshair
|
||||||
- name: Test with animated cursors
|
- name: Test with animated cursors
|
||||||
run: |
|
run: |
|
||||||
wget http://www.anicursor.com/waiting.zip
|
wget http://www.anicursor.com/waiting.zip
|
||||||
mkdir ani output
|
mkdir ani output
|
||||||
unzip waiting.zip -d ani
|
unzip waiting.zip -d ani
|
||||||
win2xcur -s ani/*.ani -o output
|
coverage run -m win2xcur.main -s ani/*.ani -o output
|
||||||
ls -l output/*
|
ls -l output/*
|
||||||
|
- name: Generating coverage report
|
||||||
|
run: coverage xml
|
||||||
|
- uses: codecov/codecov-action@v1
|
||||||
|
|
Loading…
Reference in a new issue