Skip to content

Commit a3de439

Browse files
committed
ci: split workflows
1 parent b833632 commit a3de439

6 files changed

Lines changed: 149 additions & 135 deletions

File tree

.github/workflows/test-lang-go.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: test-lang-go
2+
on: [pull_request]
3+
jobs:
4+
lang-go-test:
5+
name: "Lang Go test (ver: ${{ matrix.go-version.go }}) (os: ${{ matrix.os }})"
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
go-version: [{go: "1.22", yaegi: "v0.16.1"}, {go: "1.19", yaegi: "v0.14.0"}, {go: "1.18", yaegi: "v0.14.0"}, {go: "1.17", yaegi: "v0.13.0"}, {go: "1.16", yaegi: "v0.13.0"}]
10+
os: [ubuntu-22.04, macos-26-intel]
11+
include:
12+
- os: ubuntu-22.04
13+
python-version: "3.7.17"
14+
- os: macos-26-intel
15+
python-version: "3.12"
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup python
19+
uses: actions/setup-python@v6
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
cache: 'pip'
23+
cache-dependency-path: setup.py
24+
- name: Setup go
25+
uses: actions/setup-go@v6
26+
with:
27+
go-version: ${{ matrix.go-version.go }}
28+
- run: go version
29+
- run: make deps-dev
30+
- run: make install-from-pkg-tgz
31+
- run: go install github.com/traefik/yaegi/cmd/yaegi@${{ matrix.go-version.yaegi }}
32+
- run: PATH=$PATH:$(go env GOPATH)/bin make lang-go-test
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: test-lang-iasm
2+
on: [pull_request]
3+
jobs:
4+
lang-iasm-test:
5+
name: "Lang iasm test (ver: latest) (os: ${{ matrix.os }})"
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
os: [ubuntu-22.04, macos-26-intel]
10+
include:
11+
- os: ubuntu-22.04
12+
python-version: "3.7.17"
13+
- os: macos-26-intel
14+
python-version: "3.12"
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Setup python
18+
uses: actions/setup-python@v6
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
cache: 'pip'
22+
cache-dependency-path: setup.py
23+
- run: make deps-dev
24+
- run: make install-from-pkg-tgz
25+
- run: pip install iasm
26+
- run: make lang-iasm-test
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: test-lang-java
2+
on: [pull_request]
3+
jobs:
4+
lang-java-test:
5+
name: "Lang Java test (ver: ${{ matrix.java }}) (os: ${{ matrix.os }})"
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
java: [ '13', '15', '17', '21', '24' ]
10+
os: [ubuntu-22.04, macos-26-intel]
11+
include:
12+
- os: ubuntu-22.04
13+
python-version: "3.7.17"
14+
- os: macos-26-intel
15+
python-version: "3.12"
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup python
19+
uses: actions/setup-python@v6
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
cache: 'pip'
23+
cache-dependency-path: setup.py
24+
- name: Setup java
25+
uses: actions/setup-java@v5
26+
with:
27+
distribution: 'zulu'
28+
java-version: ${{ matrix.java }}
29+
- run: make deps-dev
30+
- run: make install-from-pkg-tgz
31+
- run: make lang-java-test
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: test-lang-javascript
2+
on: [pull_request]
3+
jobs:
4+
lang-javascript-test:
5+
name: "Lang Javascript test (ver: ${{ matrix.node-version }}) (os: ${{ matrix.os }})"
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
node-version: [10.x, 12.x, 14.x, 15.x, 16.x, 18.x, 20.x, 22.x, 23.x]
10+
os: [ubuntu-22.04, macos-26-intel]
11+
include:
12+
- os: ubuntu-22.04
13+
python-version: "3.7.17"
14+
- os: macos-26-intel
15+
python-version: "3.12"
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup python
19+
uses: actions/setup-python@v6
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
cache: 'pip'
23+
cache-dependency-path: setup.py
24+
- name: Setup Node.js ${{ matrix.node-version }}
25+
uses: actions/setup-node@v6
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
- run: make deps-dev
29+
- run: make install-from-pkg-tgz
30+
- run: make lang-javascript-test
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: test-lang-ruby
2+
on: [pull_request]
3+
jobs:
4+
lang-ruby-test:
5+
name: "Lang Ruby test (ver: ${{ matrix.ruby-version }}) (os: ${{ matrix.os }})"
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
ruby-version: ["2.4", "2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "4.0"]
10+
os: [ubuntu-22.04, macos-26-intel]
11+
include:
12+
- os: ubuntu-22.04
13+
python-version: "3.7.17"
14+
- os: macos-26-intel
15+
python-version: "3.12"
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup python
19+
uses: actions/setup-python@v6
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
cache: 'pip'
23+
cache-dependency-path: setup.py
24+
- name: Setup ruby
25+
uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: ${{ matrix.ruby-version }}
28+
- run: make deps-dev
29+
- run: make install-from-pkg-tgz
30+
- run: make lang-ruby-test

.github/workflows/test.yml

Lines changed: 0 additions & 135 deletions
Original file line numberDiff line numberDiff line change
@@ -96,29 +96,6 @@ jobs:
9696
- run: make install-from-pkg-tgz
9797
- run: make lang-python-test
9898

99-
lang-iasm-test:
100-
name: "Lang iasm test (ver: latest) (os: ${{ matrix.os }})"
101-
runs-on: ${{ matrix.os }}
102-
strategy:
103-
matrix:
104-
os: [ubuntu-22.04, macos-26-intel]
105-
include:
106-
- os: ubuntu-22.04
107-
python-version: "3.7.17"
108-
- os: macos-26-intel
109-
python-version: "3.12"
110-
steps:
111-
- uses: actions/checkout@v4
112-
- name: Setup python
113-
uses: actions/setup-python@v6
114-
with:
115-
python-version: ${{ matrix.python-version }}
116-
cache: 'pip'
117-
cache-dependency-path: setup.py
118-
- run: make deps-dev
119-
- run: make install-from-pkg-tgz
120-
- run: pip install iasm
121-
- run: make lang-iasm-test
12299

123100
lang-pwsh-test:
124101
name: "Lang PowerShell test (ver: latest) (os: ${{ matrix.os }})"
@@ -143,33 +120,6 @@ jobs:
143120
- run: make install-from-pkg-tgz
144121
- run: make lang-pwsh-test
145122

146-
lang-ruby-test:
147-
name: "Lang Ruby test (ver: ${{ matrix.ruby-version }}) (os: ${{ matrix.os }})"
148-
runs-on: ${{ matrix.os }}
149-
strategy:
150-
matrix:
151-
ruby-version: ["2.4", "2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "4.0"]
152-
os: [ubuntu-22.04, macos-26-intel]
153-
include:
154-
- os: ubuntu-22.04
155-
python-version: "3.7.17"
156-
- os: macos-26-intel
157-
python-version: "3.12"
158-
steps:
159-
- uses: actions/checkout@v4
160-
- name: Setup python
161-
uses: actions/setup-python@v6
162-
with:
163-
python-version: ${{ matrix.python-version }}
164-
cache: 'pip'
165-
cache-dependency-path: setup.py
166-
- name: Setup ruby
167-
uses: ruby/setup-ruby@v1
168-
with:
169-
ruby-version: ${{ matrix.ruby-version }}
170-
- run: make deps-dev
171-
- run: make install-from-pkg-tgz
172-
- run: make lang-ruby-test
173123

174124
lang-shell-test:
175125
name: "Lang Shell test (ver: latest) (os: ${{ matrix.os }})"
@@ -194,89 +144,4 @@ jobs:
194144
- run: make install-from-pkg-tgz
195145
- run: make lang-shell-test
196146

197-
lang-javascript-test:
198-
name: "Lang Javascript test (ver: ${{ matrix.node-version }}) (os: ${{ matrix.os }})"
199-
runs-on: ${{ matrix.os }}
200-
strategy:
201-
matrix:
202-
node-version: [10.x, 12.x, 14.x, 15.x, 16.x, 18.x, 20.x, 22.x, 23.x]
203-
os: [ubuntu-22.04, macos-26-intel]
204-
include:
205-
- os: ubuntu-22.04
206-
python-version: "3.7.17"
207-
- os: macos-26-intel
208-
python-version: "3.12"
209-
steps:
210-
- uses: actions/checkout@v4
211-
- name: Setup python
212-
uses: actions/setup-python@v6
213-
with:
214-
python-version: ${{ matrix.python-version }}
215-
cache: 'pip'
216-
cache-dependency-path: setup.py
217-
- name: Setup Node.js ${{ matrix.node-version }}
218-
uses: actions/setup-node@v6
219-
with:
220-
node-version: ${{ matrix.node-version }}
221-
- run: make deps-dev
222-
- run: make install-from-pkg-tgz
223-
- run: make lang-javascript-test
224-
225-
lang-go-test:
226-
name: "Lang Go test (ver: ${{ matrix.go-version.go }}) (os: ${{ matrix.os }})"
227-
runs-on: ${{ matrix.os }}
228-
strategy:
229-
matrix:
230-
go-version: [{go: "1.22", yaegi: "v0.16.1"}, {go: "1.19", yaegi: "v0.14.0"}, {go: "1.18", yaegi: "v0.14.0"}, {go: "1.17", yaegi: "v0.13.0"}, {go: "1.16", yaegi: "v0.13.0"}]
231-
os: [ubuntu-22.04, macos-26-intel]
232-
include:
233-
- os: ubuntu-22.04
234-
python-version: "3.7.17"
235-
- os: macos-26-intel
236-
python-version: "3.12"
237-
steps:
238-
- uses: actions/checkout@v4
239-
- name: Setup python
240-
uses: actions/setup-python@v6
241-
with:
242-
python-version: ${{ matrix.python-version }}
243-
cache: 'pip'
244-
cache-dependency-path: setup.py
245-
- name: Setup go
246-
uses: actions/setup-go@v6
247-
with:
248-
go-version: ${{ matrix.go-version.go }}
249-
- run: go version
250-
- run: make deps-dev
251-
- run: make install-from-pkg-tgz
252-
- run: go install github.com/traefik/yaegi/cmd/yaegi@${{ matrix.go-version.yaegi }}
253-
- run: PATH=$PATH:$(go env GOPATH)/bin make lang-go-test
254147

255-
lang-java-test:
256-
name: "Lang Java test (ver: ${{ matrix.java }}) (os: ${{ matrix.os }})"
257-
runs-on: ${{ matrix.os }}
258-
strategy:
259-
matrix:
260-
java: [ '13', '15', '17', '21', '24' ]
261-
os: [ubuntu-22.04, macos-26-intel]
262-
include:
263-
- os: ubuntu-22.04
264-
python-version: "3.7.17"
265-
- os: macos-26-intel
266-
python-version: "3.12"
267-
steps:
268-
- uses: actions/checkout@v4
269-
- name: Setup python
270-
uses: actions/setup-python@v6
271-
with:
272-
python-version: ${{ matrix.python-version }}
273-
cache: 'pip'
274-
cache-dependency-path: setup.py
275-
- name: Setup java
276-
uses: actions/setup-java@v5
277-
with:
278-
distribution: 'zulu'
279-
java-version: ${{ matrix.java }}
280-
- run: make deps-dev
281-
- run: make install-from-pkg-tgz
282-
- run: make lang-java-test

0 commit comments

Comments
 (0)