Skip to content

Commit

Permalink
Fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
Prodesire committed Jul 2, 2024
1 parent 4d3c253 commit 80b4d56
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 5 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,39 @@ jobs:
strategy:
matrix:
os: [ ubuntu-20.04, windows-2019, macos-12 ]
python-version: [ '3.7.9', '3.8.10', '3.9.13', '3.10.11', '3.11.5', '3.12.4' ]
python-version: [ '3.7.9', '3.8.10', '3.9.13', '3.10.11', '3.11.9', '3.12.4' ]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Set up GoLang
uses: actions/setup-go@v4
with:
go-version: '^1.21.5'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: |
python -m pip install poetry
- name: Fetch terraform repository
run: |
git submodule init
git submodule update
- name: Build distributions
run: |
poetry build -f wheel -vvv
- name: Upload distribution artifacts
uses: actions/upload-artifact@v3
with:
name: libterraform-dist
path: dist
build-macos-arm64:
strategy:
matrix:
os: [ macos-latest ]
python-version: [ '3.8.10', '3.9.13', '3.10.11', '3.11.9', '3.12.4' ]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository code
Expand Down Expand Up @@ -39,7 +71,7 @@ jobs:
name: libterraform-dist
path: dist
publish:
needs: [ build ]
needs: [ build, build-macos-arm64 ]
runs-on: macos-latest
steps:
- name: Checkout repository code
Expand Down
36 changes: 33 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
test:
strategy:
matrix:
os: [ ubuntu-20.04, windows-2019, macos-latest ]
python-version: [ '3.7.9', '3.8.10', '3.9.13', '3.10.11', '3.11.5', '3.12.4' ]
os: [ ubuntu-20.04, windows-2019, macos-12 ]
python-version: [ '3.7.9', '3.8.10', '3.9.13', '3.10.11', '3.11.9', '3.12.4' ]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository code
Expand All @@ -22,7 +22,37 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install poetry pytest
run: |
python -m pip install poetry==1.1.13 pytest==7.0.1
python -m pip install poetry pytest
- name: Fetch terraform repository
run: |
git submodule init
git submodule update
- name: Build distributions
run: |
poetry build -f wheel -vvv
- name: Run tests
run: |
pytest
test-macos-arm64:
strategy:
matrix:
os: [ macos-latest ]
python-version: [ '3.8.10', '3.9.13', '3.10.11', '3.11.9', '3.12.4' ]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Set up GoLang
uses: actions/setup-go@v4
with:
go-version: '^1.21.5'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry pytest
run: |
python -m pip install poetry pytest
- name: Fetch terraform repository
run: |
git submodule init
Expand Down

0 comments on commit 80b4d56

Please sign in to comment.