Skip to content

Commit 1110f99

Browse files
committed
Add test ci
1 parent 58ed513 commit 1110f99

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/ci.yml renamed to .github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ci
1+
name: lint
22

33
on:
44
push:

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
name: test ${{ matrix.python-version }}
13+
strategy:
14+
matrix:
15+
python-version: [ '3.10', '3.11', '3.12', '3.13', '3.14' ]
16+
fail-fast: false
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v6
22+
23+
- name: Set up Python ${{ matrix.python-version }}
24+
run: uv python install ${{ matrix.python-version }}
25+
26+
- name: Install dependencies
27+
run: |
28+
uv sync
29+
30+
- name: Run test
31+
run: uv run pytest

0 commit comments

Comments
 (0)