Skip to content

Commit 268cd3b

Browse files
authored
ci: use uv for installs (#84)
1 parent 1dfe9f2 commit 268cd3b

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ jobs:
3131
requirements.txt
3232
requirements-dev.txt
3333
34+
- name: Install uv
35+
uses: astral-sh/setup-uv@v6
36+
3437
- name: Install dependencies
35-
run: |
36-
python -m pip install --upgrade pip
37-
pip install -r requirements-dev.txt
38+
run: uv pip install -r requirements-dev.txt
3839

3940
- name: Build documentation
4041
run: mkdocs build

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ jobs:
2121
python-version: '3.11'
2222
cache: 'pip'
2323

24+
- name: Install uv
25+
uses: astral-sh/setup-uv@v6
26+
2427
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install -r requirements-dev.txt
28+
run: uv pip install -r requirements-dev.txt
2829

2930
- name: Build package
3031
run: python -m build

.github/workflows/test-publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ jobs:
3131
with:
3232
python-version: '3.11'
3333

34+
- name: Install uv
35+
uses: astral-sh/setup-uv@v6
36+
3437
- name: Install dependencies
3538
run: |
36-
python -m pip install --upgrade pip
37-
python -m pip install -r requirements-dev.txt
38-
python -m pip install -e .
39+
uv pip install -r requirements-dev.txt
40+
uv pip install -e .
3941
4042
- name: Run tests
4143
run: pytest

pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ addopts = --cov=src/enrichmcp --cov-report=term --cov-report=html
88
minversion = 6.0
99
asyncio_mode = strict
1010
asyncio_default_fixture_loop_scope = function
11+
markers =
12+
examples: run example scripts as tests

0 commit comments

Comments
 (0)