1
1
name : CI
2
2
3
3
on :
4
- - push
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ types :
9
+ - opened
10
+ - synchronize
11
+ - reopened
5
12
6
13
jobs :
7
14
test :
8
- name : Test
15
+ name : ${{ matrix.os }}/ruby-${{ matrix.ruby }}/python-${{ matrix.python }}-${{ matrix.python_architecture }}
9
16
runs-on : ${{ matrix.os }}
10
17
11
18
strategy :
@@ -14,12 +21,12 @@ jobs:
14
21
os :
15
22
- ubuntu-18.04
16
23
- macos-latest
17
- ruby_version :
18
- - 2.7.x
19
- - 2.6.x
20
- - 2.5.x
21
- - 2.4.x
22
- python_version :
24
+ ruby :
25
+ - 2.7
26
+ - 2.6
27
+ - 2.5
28
+ - 2.4
29
+ python :
23
30
- 3.8.x
24
31
- 3.7.x
25
32
- 3.6.x
@@ -28,40 +35,30 @@ jobs:
28
35
- x64
29
36
30
37
steps :
31
- - name : Setup Ruby
32
- if : matrix.ruby_version != 'master-nightly'
33
- uses : actions/setup-ruby@v1
34
- with :
35
- ruby-version : ${{ matrix.ruby_version }}
38
+ - uses : actions/checkout@v1
39
+ with :
40
+ fetch-depth : 1
41
+
42
+ - uses : ruby/setup-ruby@v1
43
+ if : matrix.ruby_version != 'master-nightly'
44
+ with :
45
+ ruby-version : ${{ matrix.ruby }}
36
46
37
- - name : Setup Python
38
- uses : actions/setup-python@v1
39
- with :
40
- python-version : ${{ matrix.python_version }}
41
- architecture : ${{ matrix.python_architecture }}
47
+ - uses : actions/setup-python@v1
48
+ with :
49
+ python-version : ${{ matrix.python }}
50
+ architecture : ${{ matrix.python_architecture }}
42
51
43
- - name : Checkout
44
- uses : actions/checkout@v1
45
- with :
46
- fetch-depth : 1
52
+ - run : gem install bundler
47
53
48
- - name : Prepare environment
49
- run : |
50
- gem install bundler
54
+ - run : pip install --user numpy
51
55
52
- - name : Install requirements
53
- run : |
54
- pip install --user numpy
55
- bundle install
56
+ - run : bundle install
56
57
57
- - name : Compile pycall.so
58
- run : |
59
- bundle exec rake compile
58
+ - run : bundle exec rake compile
60
59
61
- - name : Python investigator
62
- run : |
63
- python lib/pycall/python/investigator.py
60
+ - run : python lib/pycall/python/investigator.py
64
61
65
- - name : Test
66
- run : |
67
- PYTHON=python bundle exec rake
62
+ - run : bundle exec rake
63
+ env :
64
+ PYTHON : python
0 commit comments