Skip to content

Commit 57dcb00

Browse files
committed
add actions
1 parent bb9478b commit 57dcb00

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
ruff:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.10"
18+
19+
- name: Install ruff
20+
run: pip install ruff
21+
22+
- name: Check formatting
23+
run: ruff format --check .
24+
25+
- name: Lint
26+
run: ruff check .

.github/workflows/test.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:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.10"
18+
19+
- name: Install dependencies
20+
run: pip install -e ".[dev]"
21+
22+
- name: Run tests
23+
run: pytest --cov=locksmith --cov-report=term-missing

0 commit comments

Comments
 (0)