feat(ci): Added pipeline for tests
continuous-integration/woodpecker the build failed
Details
continuous-integration/woodpecker the build failed
Details
Add all supported, meaning by flaschengeist, python versions. Use slim image of python instead of alpine, because Pillow does not provide any wheels for musllibc
This commit is contained in:
parent
aaec6b43ae
commit
519eac8f25
|
@ -1,6 +1,6 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
lint:
|
lint:
|
||||||
image: python:alpine
|
image: python:slim
|
||||||
commands:
|
commands:
|
||||||
- pip install black
|
- pip install black
|
||||||
- black --check --line-length 120 --target-version=py37 .
|
- black --check --line-length 120 --target-version=py37 .
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
pipeline:
|
||||||
|
install:
|
||||||
|
image: python:${PYTHON}-slim
|
||||||
|
commands:
|
||||||
|
- python -m venv --clear venv
|
||||||
|
- export PATH=venv/bin:$PATH
|
||||||
|
- python -m pip install --upgrade pip
|
||||||
|
- pip install -v ".[tests]"
|
||||||
|
test:
|
||||||
|
image: python:${PYTHON}-slim
|
||||||
|
commands:
|
||||||
|
- export PATH=venv/bin:$PATH
|
||||||
|
- python -m pytest
|
||||||
|
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
PYTHON:
|
||||||
|
- 3.10
|
||||||
|
- 3.9
|
||||||
|
- 3.8
|
||||||
|
- 3.7
|
|
@ -29,13 +29,15 @@ install_requires =
|
||||||
sqlalchemy>=1.4.26
|
sqlalchemy>=1.4.26
|
||||||
toml
|
toml
|
||||||
werkzeug
|
werkzeug
|
||||||
PyMySQL;platform_system=='Windows'
|
|
||||||
mysqlclient;platform_system!='Windows'
|
|
||||||
|
|
||||||
[options.extras_require]
|
[options.extras_require]
|
||||||
argon = argon2-cffi
|
argon = argon2-cffi
|
||||||
ldap = flask_ldapconn; ldap3
|
ldap = flask_ldapconn; ldap3
|
||||||
tests = pytest; pytest-depends; coverage
|
tests = pytest; pytest-depends; coverage
|
||||||
|
mysql =
|
||||||
|
PyMySQL;platform_system=='Windows'
|
||||||
|
mysqlclient;platform_system!='Windows'
|
||||||
|
|
||||||
[options.package_data]
|
[options.package_data]
|
||||||
* = *.toml
|
* = *.toml
|
||||||
|
|
Loading…
Reference in New Issue