Skip to content

Commit 7c6d4ae

Browse files
committed
Merge dev into master: Remove duplicate test job from publish workflow
2 parents 542ffb1 + ce7c83f commit 7c6d4ae

File tree

2 files changed

+33
-27
lines changed

2 files changed

+33
-27
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,7 @@ on:
55
types: [published]
66

77
jobs:
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

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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/

0 commit comments

Comments
 (0)