chore: use pip's groups in CI (#2463)

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
Henry Schreiner
2025-06-11 08:56:12 +01:00
committed by GitHub
parent 3c5ff09888
commit 6f5e480fec
4 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ fi
$PYTHON --version $PYTHON --version
$PYTHON -m venv venv $PYTHON -m venv venv
venv/bin/python -m pip install -U pip dependency-groups venv/bin/python -m pip install -U pip
venv/bin/python -m dependency_groups test | xargs venv/bin/python -m pip install -e. venv/bin/python -m pip install -e. --group test
venv/bin/python -m pip freeze venv/bin/python -m pip freeze
venv/bin/python --version venv/bin/python --version
+6 -6
View File
@@ -20,8 +20,8 @@ linux:
script: script:
- curl -sSL https://get.docker.com/ | sh - curl -sSL https://get.docker.com/ | sh
- docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all - docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all
- python -m pip install dependency-groups - python -m pip install -U pip
- python -m dependency_groups test | xargs python -m pip install -e. pytest-custom-exit-code - python -m pip install -e. pytest-custom-exit-code --group test
- python ./bin/run_tests.py - python ./bin/run_tests.py
windows: windows:
@@ -35,8 +35,8 @@ windows:
variables: variables:
CIBW_ENABLE: "all" CIBW_ENABLE: "all"
script: script:
- py -m pip install dependency-groups - py -m pip install -U pip
- py -m pip install -e. pytest-custom-exit-code $(py -m dependency_groups test) - py -m pip install -e. pytest-custom-exit-code --group test
- py bin\run_tests.py - py bin\run_tests.py
tags: tags:
- saas-windows-medium-amd64 - saas-windows-medium-amd64
@@ -50,8 +50,8 @@ macos:
variables: variables:
CIBW_ENABLE: "all" CIBW_ENABLE: "all"
script: script:
- python3 -m pip install dependency-groups - python3 -m pip install -U pip
- python3 -m dependency_groups test | xargs python3 -m pip install -e. pytest-custom-exit-code - python3 -m pip install -e. pytest-custom-exit-code --group test
- python3 ./bin/run_tests.py - python3 ./bin/run_tests.py
tags: tags:
- saas-macos-medium-m1 - saas-macos-medium-m1
+2 -2
View File
@@ -64,8 +64,8 @@ jobs:
install: install:
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all; fi - if [ "${TRAVIS_OS_NAME}" == "linux" ]; then docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all; fi
- $PYTHON -m pip install -U pip dependency-groups - $PYTHON -m pip install -U pip
- $PYTHON -m dependency_groups test | xargs $PYTHON -m pip install -e. - $PYTHON -m pip install -e. --group test
script: | script: |
# travis_wait disable the output while waiting # travis_wait disable the output while waiting
+6 -6
View File
@@ -25,8 +25,8 @@ jobs:
versionSpec: '3.11' versionSpec: '3.11'
- bash: | - bash: |
docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all
python -m pip install dependency-groups python -m pip install -U pip
python -m dependency_groups test | xargs python -m pip install -e. python -m pip install -e. --group test
if [ "$(Build.SourceBranch)" = "refs/heads/main" ]; then if [ "$(Build.SourceBranch)" = "refs/heads/main" ]; then
echo "INFO: Exporting CIBW_ENABLE=all for main branch test run." echo "INFO: Exporting CIBW_ENABLE=all for main branch test run."
export CIBW_ENABLE=all export CIBW_ENABLE=all
@@ -43,8 +43,8 @@ jobs:
inputs: inputs:
versionSpec: '3.11' versionSpec: '3.11'
- bash: | - bash: |
python -m pip install dependency-groups python -m pip install -U pip
python -m dependency_groups test | xargs python -m pip install -e. python -m pip install -e. --group test
if [ "$(Build.SourceBranch)" = "refs/heads/main" ]; then if [ "$(Build.SourceBranch)" = "refs/heads/main" ]; then
echo "INFO: Exporting CIBW_ENABLE=all for main branch test run." echo "INFO: Exporting CIBW_ENABLE=all for main branch test run."
export CIBW_ENABLE=all export CIBW_ENABLE=all
@@ -61,8 +61,8 @@ jobs:
inputs: inputs:
versionSpec: '3.11' versionSpec: '3.11'
- bash: | - bash: |
python -m pip install dependency-groups python -m pip install -U pip
python -m dependency_groups test | xargs python -m pip install -e. python -m pip install -e. --group test
if [ "$(Build.SourceBranch)" = "refs/heads/main" ]; then if [ "$(Build.SourceBranch)" = "refs/heads/main" ]; then
echo "INFO: Exporting CIBW_ENABLE=all for main branch test run." echo "INFO: Exporting CIBW_ENABLE=all for main branch test run."
export CIBW_ENABLE=all export CIBW_ENABLE=all