Skip to content

Commit 228dfa7

Browse files
committed
ci: make tests work
1 parent aada50f commit 228dfa7

4 files changed

Lines changed: 45 additions & 0 deletions

File tree

justfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# justfile for lark-oapi-compact
2+
3+
# Default recipe - lists all available recipes
4+
default:
5+
@just --list
6+
7+
# Run tests with pytest
8+
test:
9+
uv run pytest

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ dev = [
5858
"pre-commit>=3.5.0",
5959
"pytest-cov>=4.1.0",
6060
"pytest>=8.0.0",
61+
"python-dotenv>=1.0.1",
6162
"ruff>=0.1.15",
6263
]
6364

tests/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import os
22

33
import pytest
4+
from dotenv import load_dotenv
5+
6+
try:
7+
load_dotenv()
8+
except: # noqa
9+
pass
410

511
from lark_oapi_compact.shortcut.compact import FeishuOpenAPICompactSettings
612
from lark_oapi_compact.shortcut.driver import FeishuDriverShortcut

uv.lock

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)