Skip to content

Commit 2fc4ba6

Browse files
committed
build: support uv.lock
1 parent 5019f6d commit 2fc4ba6

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

.github/workflows/tox_matrix.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,20 +69,17 @@ jobs:
6969
with:
7070
python-version: ${{ matrix.python-version }}
7171
cache: 'pip' # caching pip dependencies
72-
cache-dependency-path: |
73-
requirements-dev.txt
74-
requirements/requirements-*.txt
7572
- name: Install dependencies
7673
run: |
77-
pip install -r requirements-dev.txt
74+
pip install uv
7875
- name: Ensure conan settings has current compiler as valid
7976
if: "!contains(matrix.os, 'windows')"
8077
env:
8178
CONAN_USER_HOME: "${{steps.conan-path-script.outputs.result}}"
8279
run: |
83-
conan config init
84-
python ci/docker/linux/shared/ensure_compiler_support_by_conan.py $(conan config home)/settings.yml $(cc -dumpfullversion -dumpversion | grep -oE "^([0-9]+(\.)?)([0-9]+?)")
85-
conan profile update settings.compiler.version=${{matrix.compiler_version}} default
80+
uv run conan config init
81+
python ci/docker/linux/shared/ensure_compiler_support_by_conan.py $(uv run --quiet conan config home)/settings.yml $(cc -dumpfullversion -dumpversion | grep -oE "^([0-9]+(\.)?)([0-9]+?)")
82+
uv run conan profile update settings.compiler.version=${{matrix.compiler_version}} default
8683
8784
- name: Remove Strawberry Perl (Windows only)
8885
if: contains(matrix.os, 'windows')
@@ -102,28 +99,28 @@ jobs:
10299
CONAN_USER_HOME: "${{steps.conan-path-script.outputs.result}}"
103100
run: |
104101
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
105-
conan profile new default --detect
106-
conan install . --build missing --no-import
102+
uv run conan profile detect
103+
uv run conan install . --build missing
107104
108105
- name: Prebuild Conan packages
109106
env:
110107
CONAN_USER_HOME: "${{steps.conan-path-script.outputs.result}}"
111108
if: "!contains(matrix.os, 'windows') && steps.cache-conan.outputs.cache-hit != 'true'"
112109
run: |
113-
conan install . --build missing --no-import
110+
uv run conan install . --build missing --no-import
114111
115112
- name: Run Tox (Windows)
116113
if: contains(matrix.os, 'windows')
117114
shell: cmd
118115
run: |
119116
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
120-
tox run
117+
uv run --only-group tox --with tox-uv tox run
121118
env:
122119
TOX_ENV: "${{ steps.tox-env.outputs.result }}"
123120
CONAN_USER_HOME: "${{steps.conan-path-script.outputs.result}}"
124121
- name: Run Tox
125122
if: "!contains(matrix.os, 'windows')"
126-
run: cc --version && cc -dumpfullversion -dumpversion && tox run -vvv
123+
run: cc --version && cc -dumpfullversion -dumpversion && uv run --only-group tox --with tox-uv tox run -vvv
127124
env:
128125
TOX_ENV: "${{ steps.tox-env.outputs.result }}"
129126
CONAN_USER_HOME: "${{steps.conan-path-script.outputs.result}}"

0 commit comments

Comments
 (0)