Skip to content

Commit d68cea3

Browse files
committed
feat: Add CI workflow for linting and unit testing
1 parent 1a41c3d commit d68cea3

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
lint:
11+
name: Lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.12"
20+
21+
- name: Install uv
22+
run: pip install uv
23+
24+
- name: Install dependencies
25+
run: uv sync --extra dev
26+
27+
- name: Lint with ruff
28+
run: uv run ruff check adscan_core adscan_launcher
29+
30+
test:
31+
name: Unit Tests
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v4
35+
36+
- name: Set up Python
37+
uses: actions/setup-python@v5
38+
with:
39+
python-version: "3.12"
40+
41+
- name: Install uv
42+
run: pip install uv
43+
44+
- name: Install dependencies
45+
run: uv sync --extra dev
46+
47+
- name: Run unit tests
48+
run: uv run pytest -m unit --maxfail=5 --disable-warnings -q

0 commit comments

Comments
 (0)