Skip to content

Commit 030c33e

Browse files
committed
Update generate report to use uv
1 parent 4346eb9 commit 030c33e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/config.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,16 @@ jobs:
5151
- name: Start Redis
5252
run: sudo service redis-server start
5353

54+
- name: Install uv
55+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
56+
# Add uv to the PATH
57+
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
58+
5459
- name: Generate Report
5560
run: |
56-
python3 -m venv venv
57-
. venv/bin/activate
58-
python -m pip install --upgrade pip
59-
pip install -r requirements/dev.pip
60-
ruff check . --exit-non-zero-on-fix
61-
pytest tally_ho --doctest-modules --junitxml=coverage.xml --cov=tally_ho --cov-report=xml --cov-report=html
61+
uv pip sync requirements/dev.pip
62+
uv run ruff check . --exit-non-zero-on-fix
63+
uv run pytest tally_ho --doctest-modules --junitxml=coverage.xml --cov=tally_ho --cov-report=xml --cov-report=html
6264
coverage xml
6365
ls -al
6466
env:

0 commit comments

Comments
 (0)