Skip to content

Commit 5ea8a32

Browse files
author
AgentSIM
committed
ci: add GitHub Actions test workflow
Runs pytest on Python 3.11 and 3.12 on push to main and PRs. Uses uv for fast, reproducible installs.
1 parent 178a5e1 commit 5ea8a32

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
test:
13+
name: Tests (Python ${{ matrix.python-version }})
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
python-version: ["3.11", "3.12"]
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- uses: astral-sh/setup-uv@v5
24+
with:
25+
enable-cache: true
26+
27+
- run: uv python install ${{ matrix.python-version }}
28+
29+
- run: uv sync --extra dev --python ${{ matrix.python-version }}
30+
31+
- run: uv run pytest -v

0 commit comments

Comments
 (0)