Add CI
Some checks failed
ci/woodpecker/push/test unknown status
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/static_analysis Pipeline was successful

Added static linting, type checking for each commit as well as pytest
testing for each master push.

Add linting and static analysis CI

Use deprecated pipeline key for server woodpecker version

Format black

Install poetry environment before pyright

Add pytest CI

Update dependencies, Fix black

Ensure tests run on master branch
This commit is contained in:
Marty Oehme 2023-08-29 09:55:08 +02:00
parent c6b95a4742
commit a4f48bb24e
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
8 changed files with 157 additions and 35 deletions

7
tests/test_annotation.py Normal file
View file

@ -0,0 +1,7 @@
from papis_extract.annotation_data import Annotation
def test_matches_colorname_exact():
sut = Annotation("testfile", colors={"stroke": (1.0, 0.0, 0.0)})
c_name = sut.colorname
assert c_name == "red"