diff --git a/.github/workflows/tests-pypi.yml b/.github/workflows/tests-pypi.yml index 876fe5cabcb..71bddaa4bf8 100644 --- a/.github/workflows/tests-pypi.yml +++ b/.github/workflows/tests-pypi.yml @@ -26,14 +26,15 @@ jobs: fail-fast: false matrix: python-version: [3.9, '3.10', 3.11] - dep-versions: [requirements.txt] - no-extras: [''] include: + - dep-versions: requirements.txt + - no-extras: '' + - python-version: 3.11 + no-extras: 'No Extras' + - python-version: 3.9 + dep-versions: Minimum - python-version: 3.9 dep-versions: Minimum - no-extras: 'No Extras' - - python-version: 3.11 - dep-versions: requirements.txt no-extras: 'No Extras' steps: @@ -52,12 +53,12 @@ jobs: from pathlib import Path # Read our pyproject.toml - config = tomllib.load(open('pyproject.toml', 'rb')) + config = tomllib.load(open('pyproject.toml', 'rb'))['project'] # Generate a Minimum dependency file with (Path('ci') / 'Minimum').open('wt') as out: - for dep in config['project']['dependencies']: - if dep: + for src in (config['dependencies'], config['optional-dependencies']['test']): + for dep in src: dep = dep.split(';')[0] out.write(dep.replace('>=', '==') + '\n') EOF