Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

Commit f75dae3

Browse files
committed
ci: fix workflow actions and venv paths
1 parent 59e88eb commit f75dae3

3 files changed

Lines changed: 25 additions & 9 deletions

File tree

.github/workflows/code-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222

2323
steps:
2424
- name: Checkout to vrelease-py
25-
uses: actions/checkout@v6
25+
uses: actions/checkout@v4
2626

2727
- name: Set up uv
2828
uses: astral-sh/setup-uv@v5
2929

3030
- name: Set up Python 3.8
31-
uses: actions/setup-python@v6
31+
uses: actions/setup-python@v5
3232
with:
3333
python-version: 3.8
3434

.github/workflows/pkg-test.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,44 @@ on:
1010
jobs:
1111
run-test:
1212
runs-on: ${{ matrix.os }}
13+
defaults:
14+
run:
15+
shell: bash
1316

1417
strategy:
1518
matrix:
1619
os: [ubuntu-latest, macos-latest, windows-latest]
1720
py-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
1821

1922
steps:
23+
- name: Checkout to vrelease-py
24+
uses: actions/checkout@v4
25+
2026
- name: Set up uv
2127
uses: astral-sh/setup-uv@v5
2228

2329
- name: Set up Python ${{ matrix.py-version }}
24-
uses: actions/setup-python@v6
30+
uses: actions/setup-python@v5
2531
with:
2632
python-version: ${{ matrix.py-version }}
2733

34+
- name: Define venv paths
35+
run: |
36+
if [ "${RUNNER_OS}" = "Windows" ]; then
37+
echo "VENV_PYTHON=.venv/Scripts/python.exe" >> "$GITHUB_ENV"
38+
echo "VENV_BIN=.venv/Scripts" >> "$GITHUB_ENV"
39+
else
40+
echo "VENV_PYTHON=.venv/bin/python" >> "$GITHUB_ENV"
41+
echo "VENV_BIN=.venv/bin" >> "$GITHUB_ENV"
42+
fi
43+
2844
- name: Install vrelease-bin
2945
run: |
3046
uv venv .venv
31-
uv pip install -p .venv/bin/python vrelease-bin
47+
uv pip install -p "$VENV_PYTHON" vrelease-bin
3248
3349
- name: Run vrelease (version)
34-
run: .venv/bin/vrelease -v
50+
run: "$VENV_BIN/vrelease" -v
3551

3652
- name: Run vrelease (help)
37-
run: .venv/bin/vrelease -h
53+
run: "$VENV_BIN/vrelease" -h

.github/workflows/run-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
steps:
3232
- name: Checkout to vrelease-py
33-
uses: actions/checkout@v6
33+
uses: actions/checkout@v4
3434

3535
- name: Set up uv
3636
uses: astral-sh/setup-uv@v5
@@ -41,7 +41,7 @@ jobs:
4141
git config --global user.name "Caian Ertl"
4242
4343
- name: Set up Python ${{ matrix.py-version }}
44-
uses: actions/setup-python@v6
44+
uses: actions/setup-python@v5
4545
with:
4646
python-version: ${{ matrix.py-version }}
4747

@@ -55,7 +55,7 @@ jobs:
5555
run: uv build
5656

5757
- name: Install vrelease
58-
run: uv pip install -p .venv/bin/python dist/vrelease_bin-*.whl
58+
run: uv run -m pip install dist/vrelease_bin-*.whl
5959

6060
- name: Run vrelease (version)
6161
run: uv run vrelease -v

0 commit comments

Comments
 (0)