Skip to content

Commit 352ded1

Browse files
dnicolodirgommers
authored andcommitted
CI: test with minimum version of dependencies
1 parent ff3ba62 commit 352ded1

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
- '3.13'
5555
meson:
5656
-
57-
pyproject_metadata:
57+
dependencies:
5858
-
5959
include:
6060
- os: ubuntu-latest
@@ -70,6 +70,8 @@ jobs:
7070
# Test with older supported Meson version. Meson up to
7171
# version 1.2.3 requires distutils, which has been removed
7272
# from the stdlib in Python 3.12, thus test with Pythn 3.11.
73+
# To avoid having too many CI jobs, combine this with tests
74+
# with the minimum version of other dependencies.
7375
- os: ubuntu-latest
7476
python: '3.11'
7577
meson: '~=0.64.0'
@@ -91,12 +93,15 @@ jobs:
9193
- os: ubuntu-latest
9294
python: '3.12'
9395
meson: '~=1.5.0'
96+
dependencies: 'packaging==23.2 pyproject-metadata==0.9.0'
9497
- os: ubuntu-latest
9598
python: '3.12'
9699
meson: '~=1.6.0'
100+
dependencies: 'pyproject-metadata==0.9.0'
97101
- os: ubuntu-latest
98102
python: '3.12'
99103
meson: '~=1.7.0'
104+
dependencies: 'packaging==23.2'
100105
# Test with Meson master branch.
101106
- os: ubuntu-latest
102107
python: '3.12'
@@ -130,9 +135,9 @@ jobs:
130135
run: python -m pip install "meson ${{ matrix.meson }}"
131136
if: ${{ matrix.meson }}
132137

133-
- name: Install pyproject-metadata
134-
run: python -m pip install "pyproject-metadata ${{ matrix.pyproject_metadata }}"
135-
if: ${{ matrix.pyproject_metadata }}
138+
- name: Install dependencies
139+
run: python -m pip install ${{ matrix.dependencies }}
140+
if: ${{ matrix.dependencies }}
136141

137142
- name: Install
138143
run: python -m pip install .[test]

0 commit comments

Comments
 (0)