Skip to content

Commit 5510c5f

Browse files
committed
add ci
1 parent f301f38 commit 5510c5f

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
on: [push, pull_request]
2+
3+
defaults:
4+
run:
5+
shell: bash
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set up Python
13+
uses: actions/setup-python@v5
14+
with:
15+
python-version: '3.x'
16+
- name: Install the code linting and formatting tool Ruff
17+
run: pipx install ruff
18+
- name: Lint code with Ruff
19+
run: ruff check --output-format=github --target-version=py39
20+
- name: Check code formatting with Ruff
21+
run: ruff format --diff --target-version=py39
22+
continue-on-error: true
23+
24+
test:
25+
runs-on: ubuntu-latest
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
python-version:
30+
- "3.8"
31+
- "3.9"
32+
- "3.10"
33+
- "3.11"
34+
- "3.12"
35+
- "3.13"
36+
steps:
37+
- uses: actions/checkout@v4
38+
- uses: actions/setup-python@v4
39+
with:
40+
python-version: ${{ matrix.python-version }}
41+
- run: pip install build setuptools wheel
42+
- run: python -m build

0 commit comments

Comments
 (0)