diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index 292c5b2..4f3f972 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -2,13 +2,14 @@ pipeline: install: image: python:${PYTHON}-slim commands: - - apt update - - apt install libmariadb-dev gcc -y + - python -m venv --clear venv + - source venv/bin/activate - python -m pip install --upgrade pip - pip install -v ".[tests]" test: image: python:${PYTHON}-slim commands: + - source venv/bin/activate - python -m pytest diff --git a/setup.cfg b/setup.cfg index 982d0ab..6d533e9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -29,13 +29,15 @@ install_requires = sqlalchemy>=1.4.26 toml werkzeug - PyMySQL;platform_system=='Windows' - mysqlclient;platform_system!='Windows' + [options.extras_require] argon = argon2-cffi ldap = flask_ldapconn; ldap3 tests = pytest; pytest-depends; coverage +mysql = + PyMySQL;platform_system=='Windows' + mysqlclient;platform_system!='Windows' [options.package_data] * = *.toml