Skip to content

Commit 80b4d56

Browse files
committed
Fix action
1 parent 4d3c253 commit 80b4d56

File tree

2 files changed

+67
-5
lines changed

2 files changed

+67
-5
lines changed

.github/workflows/release.yml

+34-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,39 @@ jobs:
1010
strategy:
1111
matrix:
1212
os: [ ubuntu-20.04, windows-2019, macos-12 ]
13-
python-version: [ '3.7.9', '3.8.10', '3.9.13', '3.10.11', '3.11.5', '3.12.4' ]
13+
python-version: [ '3.7.9', '3.8.10', '3.9.13', '3.10.11', '3.11.9', '3.12.4' ]
14+
runs-on: ${{ matrix.os }}
15+
steps:
16+
- name: Check out repository code
17+
uses: actions/checkout@v2
18+
- name: Set up GoLang
19+
uses: actions/setup-go@v4
20+
with:
21+
go-version: '^1.21.5'
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Install poetry
27+
run: |
28+
python -m pip install poetry
29+
- name: Fetch terraform repository
30+
run: |
31+
git submodule init
32+
git submodule update
33+
- name: Build distributions
34+
run: |
35+
poetry build -f wheel -vvv
36+
- name: Upload distribution artifacts
37+
uses: actions/upload-artifact@v3
38+
with:
39+
name: libterraform-dist
40+
path: dist
41+
build-macos-arm64:
42+
strategy:
43+
matrix:
44+
os: [ macos-latest ]
45+
python-version: [ '3.8.10', '3.9.13', '3.10.11', '3.11.9', '3.12.4' ]
1446
runs-on: ${{ matrix.os }}
1547
steps:
1648
- name: Check out repository code
@@ -39,7 +71,7 @@ jobs:
3971
name: libterraform-dist
4072
path: dist
4173
publish:
42-
needs: [ build ]
74+
needs: [ build, build-macos-arm64 ]
4375
runs-on: macos-latest
4476
steps:
4577
- name: Checkout repository code

.github/workflows/test.yml

+33-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ jobs:
66
test:
77
strategy:
88
matrix:
9-
os: [ ubuntu-20.04, windows-2019, macos-latest ]
10-
python-version: [ '3.7.9', '3.8.10', '3.9.13', '3.10.11', '3.11.5', '3.12.4' ]
9+
os: [ ubuntu-20.04, windows-2019, macos-12 ]
10+
python-version: [ '3.7.9', '3.8.10', '3.9.13', '3.10.11', '3.11.9', '3.12.4' ]
1111
runs-on: ${{ matrix.os }}
1212
steps:
1313
- name: Check out repository code
@@ -22,7 +22,37 @@ jobs:
2222
python-version: ${{ matrix.python-version }}
2323
- name: Install poetry pytest
2424
run: |
25-
python -m pip install poetry==1.1.13 pytest==7.0.1
25+
python -m pip install poetry pytest
26+
- name: Fetch terraform repository
27+
run: |
28+
git submodule init
29+
git submodule update
30+
- name: Build distributions
31+
run: |
32+
poetry build -f wheel -vvv
33+
- name: Run tests
34+
run: |
35+
pytest
36+
test-macos-arm64:
37+
strategy:
38+
matrix:
39+
os: [ macos-latest ]
40+
python-version: [ '3.8.10', '3.9.13', '3.10.11', '3.11.9', '3.12.4' ]
41+
runs-on: ${{ matrix.os }}
42+
steps:
43+
- name: Check out repository code
44+
uses: actions/checkout@v2
45+
- name: Set up GoLang
46+
uses: actions/setup-go@v4
47+
with:
48+
go-version: '^1.21.5'
49+
- name: Set up Python ${{ matrix.python-version }}
50+
uses: actions/setup-python@v2
51+
with:
52+
python-version: ${{ matrix.python-version }}
53+
- name: Install poetry pytest
54+
run: |
55+
python -m pip install poetry pytest
2656
- name: Fetch terraform repository
2757
run: |
2858
git submodule init

0 commit comments

Comments
 (0)