Skip to content

Commit 1c449da

Browse files
authored
Fix #77: Align CI workflows for macOS and Ubuntu (#87)
* Fix #77: Align CI workflows for macOS and Ubuntu Signed-off-by: sushant-suse <[email protected]> * Fix #77: Add changelog file Signed-off-by: sushant-suse <[email protected]> --------- Signed-off-by: sushant-suse <[email protected]>
1 parent 0716607 commit 1c449da

2 files changed

Lines changed: 20 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,31 @@ jobs:
4949
jq \
5050
rsvg-convert \
5151
openssh-clients || true
52-
- name: Install the latest version of uv
53-
id: setup-uv
54-
uses: astral-sh/setup-uv@v6
52+
53+
- name: Setup Python
54+
uses: actions/setup-python@v5
5555
with:
56-
version: "latest"
57-
enable-cache: true
58-
cache-suffix: "docbuild"
56+
python-version: '3.12'
57+
58+
- name: Install uv
59+
id: setup-uv
60+
run: |
61+
python3 -m venv .venv
62+
source .venv/bin/activate
63+
pip install uv
5964
6065
- name: Print the installed version
61-
run: echo "Installed uv version is ${{ steps.setup-uv.outputs.uv-version }}"
66+
run: echo "Installed uv version is $(.venv/bin/uv --version)"
67+
6268
- name: Install dependencies
63-
run: uv sync --frozen --group devel
69+
run: |
70+
source .venv/bin/activate
71+
uv sync --frozen --group devel
72+
6473
- name: Run tests
6574
run: |
66-
uv run --frozen pytest -vv
75+
source .venv/bin/activate
76+
pytest -vv
6777
6878
test-macos:
6979
name: macos-latest

changelog.d/87.infra.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Aligned the 'uv' setup in the CI workflow for macOS and Ubuntu to ensure consistent and reliable dependency management across platforms. This resolves a 'docker: command not found' error on the macOS runner.

0 commit comments

Comments
 (0)