Skip to content

Commit ba30138

Browse files
committed
ci: add GitHub Actions workflow for testing
1 parent 37aa603 commit ba30138

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test with uv and pytest
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version: ["3.10", "3.11", "3.12", "3.13"]
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v6
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Create virtual environment
26+
run: uv venv
27+
- name: Sync dependencies and install package
28+
run: uv sync --all-extras
29+
- name: Run tests
30+
env:
31+
PROTOCOLS_IO_CLIENT_ACCESS_TOKEN: ${{ secrets.PROTOCOLS_IO_CLIENT_ACCESS_TOKEN }}
32+
run: uv run pytest

0 commit comments

Comments
 (0)