12
12
13
13
jobs :
14
14
test :
15
- name : ${{ matrix.os }}/${{ matrix.ruby }}/${{ matrix.python }}-${{ matrix.python_architecture }}
15
+ name : ${{ matrix.venv }}${{ matrix. os }}/${{ matrix.ruby }}/${{ matrix.python }}-${{ matrix.python_architecture }}
16
16
runs-on : ${{ matrix.os }}
17
17
18
18
strategy :
21
21
os :
22
22
- ubuntu-20.04
23
23
- macos-latest
24
- - windows-latest
25
24
ruby :
26
25
- " 3.0"
27
26
- 2.7
@@ -31,19 +30,24 @@ jobs:
31
30
- 2.x
32
31
python_architecture :
33
32
- x64
33
+ venv :
34
+ - " "
34
35
include :
35
- - { os: ubuntu-20.04 , ruby: 2.5 , python: 3.x , python_architecture: x64 }
36
- - { os: ubuntu-20.04 , ruby: 2.4 , python: 3.x , python_architecture: x64 }
37
- - { os: ubuntu-20.04 , ruby: 2.5 , python: 2.x , python_architecture: x64 }
38
- - { os: ubuntu-20.04 , ruby: 2.4 , python: 2.x , python_architecture: x64 }
39
- - { os: ubuntu-20.04 , ruby: 2.7 , python: 3.8 , python_architecture: x64 }
40
- - { os: ubuntu-20.04 , ruby: 2.7 , python: 3.7 , python_architecture: x64 }
41
- - { os: ubuntu-20.04 , ruby: 2.7 , python: 3.6 , python_architecture: x64 }
42
- - { os: ubuntu-18.04 , ruby: 2.7 , python: 3.8 , python_architecture: x64 }
43
- - { os: ubuntu-20.04 , ruby: debug , python: 3.x , python_architecture: x64 }
44
- # - { os: macos-latest , ruby: debug , python: 3.x , python_architecture: x64 }
45
- # - { os: windows-latest , ruby: mswin , python: 3.x , python_architecture: x64 }
46
- # - { os: windows-latest , ruby: mingw , python: 3.x , python_architecture: x64 }
36
+ - { os: ubuntu-20.04 , ruby: 2.5 , python: 3.x , python_architecture: x64 , venv: "" }
37
+ - { os: ubuntu-20.04 , ruby: 2.4 , python: 3.x , python_architecture: x64 , venv: "" }
38
+ - { os: ubuntu-20.04 , ruby: 2.5 , python: 2.x , python_architecture: x64 , venv: "" }
39
+ - { os: ubuntu-20.04 , ruby: 2.4 , python: 2.x , python_architecture: x64 , venv: "" }
40
+ - { os: ubuntu-20.04 , ruby: 2.7 , python: 3.8 , python_architecture: x64 , venv: "" }
41
+ - { os: ubuntu-20.04 , ruby: 2.7 , python: 3.7 , python_architecture: x64 , venv: "" }
42
+ - { os: ubuntu-20.04 , ruby: 2.7 , python: 3.6 , python_architecture: x64 , venv: "" }
43
+ - { os: ubuntu-18.04 , ruby: 2.7 , python: 3.8 , python_architecture: x64 , venv: "" }
44
+ - { os: ubuntu-20.04 , ruby: debug , python: 3.x , python_architecture: x64 , venv: "" }
45
+ - { os: ubuntu-20.04 , ruby: "3.0" , python: 3.x , python_architecture: x64 , venv: "venv:" }
46
+ - { os: ubuntu-18.04 , ruby: "3.0" , python: 3.x , python_architecture: x64 , venv: "venv:" }
47
+ - { os: ubuntu-18.04 , ruby: "3.0" , python: 3.8 , python_architecture: x64 , venv: "venv:" }
48
+ - { os: macos-latest , ruby: "3.0" , python: 3.x , python_architecture: x64 , venv: "venv:" }
49
+ - { os: macos-latest , ruby: "3.0" , python: 3.8 , python_architecture: x64 , venv: "venv:" }
50
+ # - { os: macos-latest , ruby: debug , python: 3.x , python_architecture: x64 , venv: "" }
47
51
48
52
steps :
49
53
- uses : actions/checkout@v2
68
72
69
73
- run : python lib/pycall/python/investigator.py
70
74
75
+ - name : venv examination
76
+ run : |
77
+ python -m venv ~/test-venv
78
+ source ~/test-venv/bin/activate
79
+ ruby -Ilib -Iext/pycall -rpycall -ePyCall.builtins
80
+ env :
81
+ PYCALL_DEBUG_FIND_LIBPYTHON : 1
82
+ if : ${{ matrix.venv != '' }}
83
+
71
84
- run : rake
72
85
env :
73
86
PYTHON : python
@@ -92,23 +105,44 @@ jobs:
92
105
with :
93
106
fetch-depth : 1
94
107
108
+ - uses : conda-incubator/setup-miniconda@v2
109
+ with :
110
+ activate-environment : test
111
+ python-version : ${{ matrix.python }}
112
+
95
113
- uses : ruby/setup-ruby@v1
96
114
if : matrix.ruby_version != 'master-nightly'
97
115
with :
98
116
ruby-version : ${{ matrix.ruby }}
99
117
100
- - uses : s-weigand/setup-conda@v1
101
- with :
102
- python-version : ${{ matrix.python }}
118
+ - name : Add Ruby path
119
+ run : |
120
+ echo >> ~/.profile
121
+ echo >> ~/.profile
122
+ IFS=:
123
+ for p in $PATH; do
124
+ case $p in
125
+ */Ruby/*)
126
+ echo "export PATH=$p:\$PATH" >> ~/.profile
127
+ ;;
128
+ esac
129
+ done
130
+
131
+ - run : cat ~/.profile
132
+
133
+ - run : bash -xe ~/.profile
103
134
104
135
- run : conda install numpy
136
+ shell : bash -l {0}
105
137
106
138
- run : bundle install
107
139
108
140
- run : rake compile
109
141
110
142
- run : python lib/pycall/python/investigator.py
143
+ shell : bash -l {0}
111
144
112
145
- run : rake
113
146
env :
114
147
PYTHON : python
148
+ shell : bash -l {0}
0 commit comments