File tree Expand file tree Collapse file tree 3 files changed +80
-0
lines changed Expand file tree Collapse file tree 3 files changed +80
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Linting
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ lint :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - uses : actions/checkout@v4
10+
11+ - name : Set up Python
12+ uses : actions/setup-python@v5
13+ with :
14+ python-version : 3.11
15+
16+ - name : Install uv
17+ run : pip install uv
18+
19+ - name : Create venv
20+ run : uv venv
21+
22+ - name : Install package with dev dependencies
23+ run : uv pip install -e ".[dev]"
24+
25+ - name : Run Ruff
26+ run : uv run ruff check src
Original file line number Diff line number Diff line change 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@v3
11+
12+ - name : Set up Python
13+ uses : actions/setup-python@v4
14+ with :
15+ python-version : 3.11
16+
17+ - name : Install uv
18+ run : pip install uv
19+
20+ - name : Create venv
21+ run : uv venv
22+
23+ - name : Install package with dev dependencies
24+ run : uv pip install -e ".[dev,memcached]"
25+
26+ - name : Run tests
27+ run : uv run pytest
Original file line number Diff line number Diff line change 1+ name : Type Checking
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ type-check :
7+ runs-on : ubuntu-latest
8+
9+ steps :
10+ - uses : actions/checkout@v4
11+
12+ - name : Set up Python
13+ uses : actions/setup-python@v5
14+ with :
15+ python-version : 3.11
16+
17+ - name : Install uv
18+ run : pip install uv
19+
20+ - name : Create venv
21+ run : uv venv
22+
23+ - name : Install package with dev dependencies
24+ run : uv pip install -e ".[dev]"
25+
26+ - name : Run mypy
27+ run : uv run mypy src --config-file pyproject.toml
You can’t perform that action at this time.
0 commit comments