From 941f4a0a8bedad64a445c6774841ce3e4e5281aa Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Sat, 7 Oct 2023 12:24:16 -0700 Subject: [PATCH] Pull python versions from octodns/octodns/.ci-config.json --- .github/workflows/main.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index be2a6b8..b086c34 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,12 +2,25 @@ name: octoDNS {PROVIDER} on: [pull_request, workflow_dispatch] jobs: + config: + runs-on: ubuntu-latest + outputs: + json: ${{ steps.load.outputs.json }} + steps: + - id: load + run: | + { + echo 'json<> $GITHUB_OUTPUT ci: + needs: config runs-on: ubuntu-latest strategy: fail-fast: false matrix: - python-version: ${{fromJson(vars.PYTHON_VERSIONS_ACTIVE)}} + python-version: ${{ fromJson(needs.config.outputs.json).python_versions_active }} steps: - uses: actions/checkout@v4 - name: Setup python @@ -19,13 +32,14 @@ jobs: run: | ./script/cibuild-template setup-py: + needs: config runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Setup python uses: actions/setup-python@v4 with: - python-version: ${{ vars.PYTHON_VERSION_CURRENT }} + python-version: ${{ fromJson(needs.config.outputs.json).python_version_current }} architecture: x64 - name: CI setup.py run: |