Skip to content

Commit abec918

Browse files
committed
improve ci
1 parent f617222 commit abec918

3 files changed

Lines changed: 23 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ on:
88
branches: [ "main" ]
99

1010
jobs:
11-
build:
12-
11+
test:
1312
runs-on: ubuntu-latest
1413
strategy:
1514
fail-fast: false
@@ -18,18 +17,23 @@ jobs:
1817

1918
steps:
2019
- uses: actions/checkout@v4
21-
- name: Install uv and set the python version
22-
uses: astral-sh/setup-uv@v6
20+
- uses: astral-sh/setup-uv@v6
2321
with:
2422
python-version: ${{ matrix.python-version }}
2523
enable-cache: true
26-
2724
- name: Setup
2825
run: |
2926
uv sync
30-
- name: Lint
31-
run: |
32-
ruff check
3327
- name: Test
3428
run: |
3529
pytest
30+
31+
lint:
32+
runs-on: ubuntu-latest
33+
34+
steps:
35+
- uses: actions/checkout@v4
36+
- uses: astral-sh/setup-uv@v6
37+
- name: Lint
38+
run: |
39+
uvx ruff check

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ dependencies = []
1010
[build-system]
1111
requires = ["uv-build>=0.8.2"]
1212
build-backend = "uv_build"
13+
14+
[dependency-groups]
15+
dev = [
16+
"pytest>=8.4.1",
17+
"ruff>=0.12.4",
18+
]

tests/test_import.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import runtime_docstrings
2+
3+
4+
def test_import():
5+
assert runtime_docstrings

0 commit comments

Comments
 (0)