From 598d82e1a9649db83c41ec5f7f90d62317b1e8e5 Mon Sep 17 00:00:00 2001 From: Lachlan Grose Date: Thu, 18 Jan 2024 12:12:23 +1100 Subject: [PATCH] ci: using environment variables to define build matrix --- .github/workflows/CD.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index d884a8d6..dc740787 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -10,8 +10,8 @@ jobs: strategy: fail-fast: false matrix: - os: ["ubuntu-latest", "windows-latest"] # , "macos-latest"] - python-version: ["3.8", "3.9", "3.10", "3.11"] + os: ${{ fromJSON(vars.BUILD_OS)}} + python-version: ${{ fromJSON(vars.PYTHON_VERSIONS)}} steps: - uses: actions/checkout@v2 - uses: conda-incubator/setup-miniconda@v2 @@ -59,8 +59,8 @@ jobs: strategy: fail-fast: false matrix: - os: ["ubuntu-latest", "windows-latest"] # , "macos-latest"] - python-version: ["3.8", "3.9", "3.10", "3.11"] + os: ${{ fromJSON(vars.BUILD_OS)}} + python-version: ${{ fromJSON(vars.PYTHON_VERSIONS)}} steps: - uses: conda-incubator/setup-miniconda@v2 with: