add pytest CI workflow

This commit is contained in:
Rebecca Breu 2021-03-24 21:37:24 +01:00
parent 88c7300137
commit 8826b173c1
2 changed files with 26 additions and 1 deletions

22
.github/workflows/pytest.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: pytest
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Run Unittests with pytest
run: |
pytest .

View file

@ -4,11 +4,14 @@ BeeRef — A Simple Reference Image Viewer
View your references while you art!
|github-ci-flake8|
|github-ci-flake8| |github-ci-pytest|
.. |github-ci-flake8| image:: https://github.com/rbreu/beeref/actions/workflows/flake8.yml/badge.svg
:target: https://github.com/rbreu/beeref/actions/workflows/flake8.yml
.. |github-ci-pytest| image:: https://github.com/rbreu/beeref/actions/workflows/pytest.yml/badge.svg
:target: https://github.com/rbreu/beeref/actions/workflows/pytest.yml
Installation via Python & pip
-----------------------------