Use python from venv
Some checks failed
Run Tests / run-tests (push) Failing after 39s

This commit is contained in:
2026-05-01 19:12:40 +02:00
parent 0632899f7a
commit c1a6dafa9f
3 changed files with 34 additions and 6 deletions

View File

@@ -11,13 +11,23 @@ jobs:
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }}
- name: Create virtual env
run: |
python3 -m venv .venv
source .venv/bin/activate
which python
python --version
python -m sqlite3 --version
- name: Install poetry
run: |
python3 -m pip install poetry==2.3.4
source .venv/bin/activate
pip install poetry==2.3.4
- name: Install the project dependencies
run: |
python3 -m poetry install
python3 -m poetry env info
source .venv/bin/activate
poetry install
poetry env info
- name: Run the automated tests
run: |
python3 -m poetry run python -m pytest tests
source .venv/bin/activate
poetry run pytest tests

19
poetry.lock generated
View File

@@ -1456,6 +1456,23 @@ files = [
[package.extras]
windows-terminal = ["colorama (>=0.4.6)"]
[[package]]
name = "pysqlite3-binary"
version = "0.5.4.post2"
description = "DB-API 2.0 interface for Sqlite 3.x"
optional = false
python-versions = "*"
groups = ["main"]
files = [
{file = "pysqlite3_binary-0.5.4.post2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:7f8171c8dd11dfc6fe5321394903782df9610f51d457a3ebe8c972c0bc4606fb"},
{file = "pysqlite3_binary-0.5.4.post2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:3060a56666ede382c9af3e4b086e30c9ffb65133b3fa606c2d1b9fbff512f241"},
{file = "pysqlite3_binary-0.5.4.post2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b6162cd966fa563fe85b5372c3e61d11dd7903bd0f09cc185cb0a4c9125f4a0f"},
{file = "pysqlite3_binary-0.5.4.post2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:930c7597a0863ef3da721e538756c2768cee14cb9b8d2c037263d061b24f66a5"},
{file = "pysqlite3_binary-0.5.4.post2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:da62981abfbfb4b3d0a9e339932fe44f8d7f3fc62037851f89ea224409ed1767"},
{file = "pysqlite3_binary-0.5.4.post2-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:6163744e1939f459803c6aed25ea5a9ff653063c1c1ea05fabb33a8b5bcad4f2"},
{file = "pysqlite3_binary-0.5.4.post2-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:6dfdd3d9c2b29643cc4a0fafb653f0f967d9078cd39fda687fc2d15477408c0d"},
]
[[package]]
name = "pytest"
version = "9.0.3"
@@ -2291,4 +2308,4 @@ watchmedo = ["PyYAML (>=3.10)"]
[metadata]
lock-version = "2.1"
python-versions = ">=3.10,<4"
content-hash = "6c56d9f68b799c005b4591f3ff558c3a90138546f9ca3f946e3ed52d55a56fe2"
content-hash = "ef035188657e1b11fb6ac5713d4822d0e87477551ca450625254b89008e29c26"

View File

@@ -11,7 +11,8 @@ dependencies = [
"authlib (==1.6.9)",
"sqlalchemy (>=2.0.49,<3.0.0)",
"pytest-alembic (>=0.12.1,<0.13.0)",
"pytest-env (>=1.6.0,<2.0.0)"
"pytest-env (>=1.6.0,<2.0.0)",
"pysqlite3-binary (>=0.5.4.post2,<0.6.0)"
]
[tool.poetry]