Skip to content

Commit ac8fd7c

Browse files
authored
πŸ‘· Add tests setup for CI (#1)
1 parent 92ceb2d commit ac8fd7c

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

β€Ž.github/workflows/test.ymlβ€Ž

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ jobs:
3232
python-version:
3333
- "3.14"
3434
include:
35-
- os: macos-latest
36-
python-version: "3.8"
37-
- os: windows-latest
38-
python-version: "3.9"
3935
- os: ubuntu-latest
4036
python-version: "3.10"
4137
- os: macos-latest

β€Žrequirements-tests.txtβ€Ž

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-e .
2+
3+
pytest >=8.3.5
4+
coverage[toml] >=7.6.1
5+
mypy ==1.14.1
6+
ruff ==0.14.1
7+
smokeshow >=0.5.0

β€Žtests/__init__.pyβ€Ž

Whitespace-only changes.

β€Žtests/test_main.pyβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from fastapi_new import __version__
2+
3+
4+
def test_version_var_exists() -> None:
5+
assert isinstance(__version__, str)

0 commit comments

Comments
Β (0)