Skip to content

Commit e596407

Browse files
committed
workflows
1 parent 5c1a655 commit e596407

File tree

3 files changed

+80
-0
lines changed

3 files changed

+80
-0
lines changed

.github/workflows/linting.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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

.github/workflows/tests.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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

0 commit comments

Comments
 (0)