Skip to content

Commit 6f5e480

Browse files
authored
chore: use pip's groups in CI (#2463)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 3c5ff09 commit 6f5e480

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

.circleci/prepare.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fi
1010

1111
$PYTHON --version
1212
$PYTHON -m venv venv
13-
venv/bin/python -m pip install -U pip dependency-groups
14-
venv/bin/python -m dependency_groups test | xargs venv/bin/python -m pip install -e.
13+
venv/bin/python -m pip install -U pip
14+
venv/bin/python -m pip install -e. --group test
1515
venv/bin/python -m pip freeze
1616
venv/bin/python --version

.gitlab-ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ linux:
2020
script:
2121
- curl -sSL https://get.docker.com/ | sh
2222
- docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all
23-
- python -m pip install dependency-groups
24-
- python -m dependency_groups test | xargs python -m pip install -e. pytest-custom-exit-code
23+
- python -m pip install -U pip
24+
- python -m pip install -e. pytest-custom-exit-code --group test
2525
- python ./bin/run_tests.py
2626

2727
windows:
@@ -35,8 +35,8 @@ windows:
3535
variables:
3636
CIBW_ENABLE: "all"
3737
script:
38-
- py -m pip install dependency-groups
39-
- py -m pip install -e. pytest-custom-exit-code $(py -m dependency_groups test)
38+
- py -m pip install -U pip
39+
- py -m pip install -e. pytest-custom-exit-code --group test
4040
- py bin\run_tests.py
4141
tags:
4242
- saas-windows-medium-amd64
@@ -50,8 +50,8 @@ macos:
5050
variables:
5151
CIBW_ENABLE: "all"
5252
script:
53-
- python3 -m pip install dependency-groups
54-
- python3 -m dependency_groups test | xargs python3 -m pip install -e. pytest-custom-exit-code
53+
- python3 -m pip install -U pip
54+
- python3 -m pip install -e. pytest-custom-exit-code --group test
5555
- python3 ./bin/run_tests.py
5656
tags:
5757
- saas-macos-medium-m1

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ jobs:
6464

6565
install:
6666
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all; fi
67-
- $PYTHON -m pip install -U pip dependency-groups
68-
- $PYTHON -m dependency_groups test | xargs $PYTHON -m pip install -e.
67+
- $PYTHON -m pip install -U pip
68+
- $PYTHON -m pip install -e. --group test
6969

7070
script: |
7171
# travis_wait disable the output while waiting

azure-pipelines.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
versionSpec: '3.11'
2626
- bash: |
2727
docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all
28-
python -m pip install dependency-groups
29-
python -m dependency_groups test | xargs python -m pip install -e.
28+
python -m pip install -U pip
29+
python -m pip install -e. --group test
3030
if [ "$(Build.SourceBranch)" = "refs/heads/main" ]; then
3131
echo "INFO: Exporting CIBW_ENABLE=all for main branch test run."
3232
export CIBW_ENABLE=all
@@ -43,8 +43,8 @@ jobs:
4343
inputs:
4444
versionSpec: '3.11'
4545
- bash: |
46-
python -m pip install dependency-groups
47-
python -m dependency_groups test | xargs python -m pip install -e.
46+
python -m pip install -U pip
47+
python -m pip install -e. --group test
4848
if [ "$(Build.SourceBranch)" = "refs/heads/main" ]; then
4949
echo "INFO: Exporting CIBW_ENABLE=all for main branch test run."
5050
export CIBW_ENABLE=all
@@ -61,8 +61,8 @@ jobs:
6161
inputs:
6262
versionSpec: '3.11'
6363
- bash: |
64-
python -m pip install dependency-groups
65-
python -m dependency_groups test | xargs python -m pip install -e.
64+
python -m pip install -U pip
65+
python -m pip install -e. --group test
6666
if [ "$(Build.SourceBranch)" = "refs/heads/main" ]; then
6767
echo "INFO: Exporting CIBW_ENABLE=all for main branch test run."
6868
export CIBW_ENABLE=all

0 commit comments

Comments
 (0)