From fafd56cccbc0f8daeab7c622e2605bb71e071ca6 Mon Sep 17 00:00:00 2001 From: Ryan May Date: Wed, 20 Sep 2023 16:42:25 -0600 Subject: [PATCH] CI: Add a job to test minimum Cartopy --- .github/workflows/tests-pypi.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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