Skip to content

Commit 0e20d48

Browse files
committed
Add a separate gh action for testing
1 parent 6faed74 commit 0e20d48

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
11+
- name: Set up Python
12+
uses: actions/setup-python@v4
13+
with:
14+
python-version: '3.x'
15+
16+
- name: Install uv
17+
run: |
18+
curl -LsSf https://astral.sh/uv/install.sh | sh
19+
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
20+
21+
- name: Install dependencies
22+
run: |
23+
uv pip install pytest opencv-python numpy
24+
uv pip install -e .
25+
26+
- name: Run tests
27+
run: |
28+
uv python -m pytest tests/

0 commit comments

Comments
 (0)