Skip to content

Commit 42d9c7c

Browse files
authored
Create test-new-ci.yml
1 parent 4fdf2c1 commit 42d9c7c

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/test-new-ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: UV CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
pull_request:
9+
branches:
10+
- main
11+
- dev
12+
workflow_dispatch:
13+
14+
jobs:
15+
build:
16+
strategy:
17+
matrix:
18+
python-version: ["3.10", "3.11", "3.12", "3.13"] # Add more versions as needed
19+
os: [ubuntu-latest, macos-latest, windows-latest, macos-13]
20+
21+
runs-on: ${{ matrix.os }}
22+
23+
steps:
24+
- name: Set up Python
25+
uses: actions/setup-python@v3
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
29+
- name: Check out code
30+
uses: actions/checkout@v3
31+
32+
- name: Install uv (Unix)
33+
if: runner.os != 'Windows'
34+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
35+
36+
- name: Install uv (Windows)
37+
if: runner.os == 'Windows'
38+
run: powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/0.5.22/install.ps1 | iex"
39+
40+
- name: Build and install package
41+
run: uv build --editable .
42+
43+
- name: Install test dependencies
44+
run: uv pip install pytest black
45+
46+
- name: Run tests
47+
run: pytest . -vv
48+
49+
- name: Lint with Black
50+
run: black --check .

0 commit comments

Comments
 (0)