Skip to content

Commit d190c1a

Browse files
committed
fix
1 parent fa808af commit d190c1a

3 files changed

Lines changed: 22 additions & 4 deletions

File tree

.github/scripts/ci_check_wheel.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ if ([string]::IsNullOrEmpty($WHEEL)) {
3737
}
3838
uv pip install --no-cache --no-config $WHEEL
3939

40-
uv run --no-sync python -c "import mapfile_parser; print(help(mapfile_parser.scan_for_config))"
40+
uv run --no-sync python -c "import mapfile_parser; print(mapfile_parser.__version__)"

.github/scripts/ci_check_wheel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ if [ -z "$WHEEL" ]; then
3535
fi
3636
uv pip install --no-cache --no-config "$WHEEL"
3737
# Check something basic to make sure it was installed correctly.
38-
uv run --no-sync python -c "import mapfile_parser; print(help(mapfile_parser.scan_for_config))"
38+
uv run --no-sync python -c "import mapfile_parser; print(mapfile_parser.__version__)"

.github/workflows/tests.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,18 @@ jobs:
9797
- name: Install uv
9898
uses: astral-sh/setup-uv@v7
9999

100-
- name: Setup project
100+
- name: Setup venv ${{ matrix.py_version }}
101+
if: ${{ matrix.py_version != '3.x' }}
101102
run: |
102103
uv venv --python ${{ matrix.py_version }}
104+
# `--python 3 --managed-python` makes uv to install the latest python version available
105+
- name: Setup venv 3.x
106+
if: ${{ matrix.py_version == '3.x' }}
107+
run: |
108+
uv venv --python 3 --managed-python
109+
110+
- name: Sync venv
111+
run: |
103112
uv sync
104113
105114
- name: Update tests outputs
@@ -138,9 +147,18 @@ jobs:
138147
- name: Install uv
139148
uses: astral-sh/setup-uv@v7
140149

141-
- name: Setup project
150+
- name: Setup venv ${{ matrix.py_version }}
151+
if: ${{ matrix.py_version != '3.x' }}
142152
run: |
143153
uv venv --python ${{ matrix.py_version }}
154+
# `--python 3 --managed-python` makes uv to install the latest python version available
155+
- name: Setup venv 3.x
156+
if: ${{ matrix.py_version == '3.x' }}
157+
run: |
158+
uv venv --python 3 --managed-python
159+
160+
- name: Sync venv
161+
run: |
144162
uv sync
145163
146164
- name: bss_check

0 commit comments

Comments
 (0)