Skip to content

Commit

Permalink
Merge pull request #22 from octodns/python-versions
Browse files Browse the repository at this point in the history
Pull python versions from octodns/octodns/.ci-config.json
  • Loading branch information
ross authored Oct 7, 2023
2 parents 4d07197 + 20826b2 commit 09ceab8
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 MythicBeastsProvider
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/main/.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 09ceab8

Please sign in to comment.