Skip to content

Commit

Permalink
Merge pull request #30 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 4602d48 + cc4b5d9 commit 82b5451
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 SelectelProvider
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 82b5451

Please sign in to comment.