Skip to content

Commit 4b657ee

Browse files
committed
Small Dockerfile & Makefile fixes
1 parent 5e656df commit 4b657ee

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

.github/workflows/changelog.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ jobs:
3838

3939
- name: Install dependencies
4040
run: |
41-
make venv
41+
export UV=$(which uv)
42+
make venv-install
4243
4344
- name: Check changelog entry exists
4445
run: |

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ jobs:
4040

4141
- name: Install dependencies
4242
run: |
43-
make venv
43+
export UV=$(which uv)
44+
make venv-install
4445
4546
- name: Run mypy
4647
run: uv run mypy ./data_rentgen --config-file ./pyproject.toml

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141

4242
- name: Install dependencies
4343
run: |
44-
make venv
44+
export UV=$(which uv)
45+
make venv-install
4546
4647
- name: Generate OpenAPI Schema
4748
run: |

.github/workflows/test.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ jobs:
4646

4747
- name: Install dependencies
4848
run: |
49-
make venv
49+
export UV=$(which uv)
50+
make venv-install
5051
5152
- name: Run Tests
5253
run: |
@@ -116,11 +117,13 @@ jobs:
116117
with:
117118
python-version: ${{ env.DEFAULT_PYTHON }}
118119

119-
- name: Upgrade pip
120-
run: python -m pip install --upgrade pip setuptools wheel
120+
- name: Install uv
121+
uses: astral-sh/setup-uv@v7
121122

122123
- name: Install dependencies
123-
run: pip install -I coverage
124+
run: |
125+
export UV=$(which uv)
126+
make venv-install
124127
125128
- name: Download all raw coverage data
126129
uses: actions/download-artifact@v7
@@ -130,8 +133,8 @@ jobs:
130133

131134
- name: Combine Coverage Data
132135
run: |
133-
coverage combine coverage-data
134-
coverage xml -o combined_coverage.xml
136+
uv run coverage combine coverage-data
137+
uv run coverage xml -o combined_coverage.xml
135138
136139
- name: Coverage comment
137140
id: coverage

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ VERSION = develop
66
VIRTUAL_ENV ?= .venv
77
PYTHON = ${VIRTUAL_ENV}/bin/python
88
PIP = ${VIRTUAL_ENV}/bin/pip
9-
UV = ${VIRTUAL_ENV}/bin/uv
9+
UV ?= ${VIRTUAL_ENV}/bin/uv
1010
PYTEST = ${VIRTUAL_ENV}/bin/pytest
1111
COVERAGE = ${VIRTUAL_ENV}/bin/coverage
1212

0 commit comments

Comments
 (0)