Skip to content

Commit

Permalink
Pull python versions from octodns/octodns/.ci-config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ross committed Oct 7, 2023
1 parent 36b9ff6 commit 4568647
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,25 @@ name: octoDNS EdgeCenterProvider
on: [pull_request]

jobs:
config:
runs-on: ubuntu-latest
outputs:
json: ${{ steps.load.outputs.json }}
steps:
- id: load
run: |
{
echo 'json<<EOF'
curl -L https://github.com/octodns/octodns/raw/python-matrix-json/.ci-config.json
echo EOF
} >> $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
Expand All @@ -19,13 +32,14 @@ jobs:
run: |
./script/cibuild
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: |
Expand Down

0 comments on commit 4568647

Please sign in to comment.