[fix/ci] use .test.env for ci
Some checks failed
/ build-uberjar (push) Failing after 53s

This commit is contained in:
SouthFox 2024-02-26 21:57:14 +08:00
parent 65cc0f9075
commit 295d378947
3 changed files with 6 additions and 4 deletions

2
.env.test Normal file
View file

@ -0,0 +1,2 @@
FOXHOLE_CONFIG_FILE = "tests.toml"
FOXHOLE_KEY_PATH = "tests/key.pem"

View file

@ -5,10 +5,6 @@ description = ""
authors = ["SouthFox <master@southfox.me>"]
readme = "README.org"
[tool.pytest_env]
FOXHOLE_CONFIG_FILE = "tests.toml"
FOXHOLE_KEY_PATH = "tests/key.pem"
[tool.poetry.dependencies]
python = "^3.11"
fastapi = "^0.110.0"
@ -38,6 +34,7 @@ factory-boy = "^3.2.1"
black = "^23.7.0"
pytest-dotenv = "^0.5.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

3
pytest.ini Normal file
View file

@ -0,0 +1,3 @@
[pytest]
env_files =
.test.env