Skip to content

Commit 69d8ea4

Browse files
committed
Add creating uv venv before testing, remove testing in the publish action
1 parent bd1f2cf commit 69d8ea4

File tree

2 files changed

+2
-27
lines changed

2 files changed

+2
-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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
2121
- name: Install dependencies
2222
run: |
23+
uv venv
24+
. .venv/bin/activate
2325
uv pip install pytest opencv-python numpy
2426
uv pip install -e .
2527

0 commit comments

Comments
 (0)