From f2c8c49d1268362dd7eb15a697d74f46dc4666e3 Mon Sep 17 00:00:00 2001 From: n-wbrown Date: Sun, 19 Nov 2023 18:25:02 -0800 Subject: [PATCH] select version index --- .github/workflows/cookiecutter-test.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cookiecutter-test.yml b/.github/workflows/cookiecutter-test.yml index 1fd63d3..4be1fa9 100644 --- a/.github/workflows/cookiecutter-test.yml +++ b/.github/workflows/cookiecutter-test.yml @@ -42,6 +42,21 @@ jobs: matrix: config_file: [ default_config.yaml, complex_config.yaml] python_version: [ "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] + include: + - python_version: "3.6" + python_version_index: "6" + - python_version: "3.7" + python_version_index: "5" + - python_version: "3.8" + python_version_index: "4" + - python_version: "3.9" + python_version_index: "3" + - python_version: "3.10" + python_version_index: "2" + - python_version: "3.10" + python_version_index: "2" + - python_version: "3.11" + python_version_index: "1" steps: @@ -72,7 +87,7 @@ jobs: - name: Append version to config run: | - echo ' python_version: "${{ matrix.python_version }}" ' >> tests/${{ matrix.config_file }} + echo ' python_version: "${{ matrix.python_version_index }}" ' >> tests/${{ matrix.config_file }} cat tests/${{ matrix.config_file }} - name: Use the cookiecutter