File tree Expand file tree Collapse file tree 2 files changed +33
-27
lines changed
Expand file tree Collapse file tree 2 files changed +33
-27
lines changed Original file line number Diff line number Diff line change 55 types : [published]
66
77jobs :
8- test :
9- runs-on : ubuntu-latest
10- steps :
11- - uses : actions/checkout@v4
12-
13- - name : Set up Python
14- uses : actions/setup-python@v5
15- with :
16- python-version : ' 3.12'
17-
18- - name : Install uv
19- run : |
20- python -m pip install --upgrade pip
21- pip install uv
22-
23- - name : Install dependencies
24- run : |
25- uv venv
26- uv pip install ".[dev]"
27-
28- - name : Run tests
29- run : |
30- uv pip install pytest
31- pytest
32-
33-
348 build :
35- needs : test
369 runs-on : ubuntu-latest
3710 steps :
3811 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change 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+ uv --version # Verify installation
21+
22+ - name : Install dependencies
23+ run : |
24+ uv venv .venv
25+ source .venv/bin/activate
26+ uv pip install --upgrade pip
27+ uv pip install pytest pytest-cov opencv-python numpy
28+ uv pip install -e .
29+
30+ - name : Run tests
31+ run : |
32+ source .venv/bin/activate
33+ python -m pytest tests/
You can’t perform that action at this time.
0 commit comments