Skip to content

Commit 052d2fc

Browse files
authored
add test action (#5)
* add test action * fix circular import
1 parent 7c97757 commit 052d2fc

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

.github/workflows/tests.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Install uv and set the python version
13+
uses: astral-sh/setup-uv@v5
14+
with:
15+
python-version: "3.11"
16+
enable-cache: true
17+
cache-dependency-glob: "uv.lock"
18+
19+
- name: Install the project
20+
run: uv sync --all-extras --dev
21+
22+
- name: Run tests
23+
run: uv run pytest

crudadmin/core/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
UnauthorizedException,
1515
UnprocessableEntityException,
1616
)
17-
from .rate_limiter import SimpleRateLimiter, create_rate_limiter
1817

1918
__all__ = [
2019
"DatabaseConfig",
@@ -25,8 +24,6 @@
2524
"UnprocessableEntityException",
2625
"DuplicateValueException",
2726
"RateLimitException",
28-
"SimpleRateLimiter",
29-
"create_rate_limiter",
3027
"authenticate_user_by_credentials",
3128
"convert_user_to_dict",
3229
"get_password_hash",

0 commit comments

Comments
 (0)