This commit is contained in:
parent
65cc0f9075
commit
e5d7b7f8a5
4 changed files with 8 additions and 6 deletions
2
.env.test
Normal file
2
.env.test
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
FOXHOLE_CONFIG_FILE = "tests.toml"
|
||||||
|
FOXHOLE_KEY_PATH = "tests/key.pem"
|
|
@ -1,6 +1,6 @@
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
build-uberjar:
|
run-pytest:
|
||||||
container:
|
container:
|
||||||
image: nikolaik/python-nodejs:python3.11-nodejs21
|
image: nikolaik/python-nodejs:python3.11-nodejs21
|
||||||
steps:
|
steps:
|
||||||
|
@ -19,7 +19,7 @@ jobs:
|
||||||
- name: Run test
|
- name: Run test
|
||||||
run: |
|
run: |
|
||||||
poetry install --no-root
|
poetry install --no-root
|
||||||
poetry run pytest -vvv
|
poetry run pytest --envfile .env.test -vvv
|
||||||
|
|
||||||
- name: Cache poetry project dependencies
|
- name: Cache poetry project dependencies
|
||||||
uses: actions/cache/save@v4
|
uses: actions/cache/save@v4
|
||||||
|
|
|
@ -5,10 +5,6 @@ description = ""
|
||||||
authors = ["SouthFox <master@southfox.me>"]
|
authors = ["SouthFox <master@southfox.me>"]
|
||||||
readme = "README.org"
|
readme = "README.org"
|
||||||
|
|
||||||
[tool.pytest_env]
|
|
||||||
FOXHOLE_CONFIG_FILE = "tests.toml"
|
|
||||||
FOXHOLE_KEY_PATH = "tests/key.pem"
|
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.11"
|
python = "^3.11"
|
||||||
fastapi = "^0.110.0"
|
fastapi = "^0.110.0"
|
||||||
|
@ -38,6 +34,7 @@ factory-boy = "^3.2.1"
|
||||||
black = "^23.7.0"
|
black = "^23.7.0"
|
||||||
pytest-dotenv = "^0.5.2"
|
pytest-dotenv = "^0.5.2"
|
||||||
|
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core"]
|
requires = ["poetry-core"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|
3
pytest.ini
Normal file
3
pytest.ini
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[pytest]
|
||||||
|
env_files =
|
||||||
|
.test.env
|
Loading…
Reference in a new issue