1212
1313jobs :
1414 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 }}
1616 runs-on : ${{ matrix.os }}
1717
1818 strategy :
2121 os :
2222 - ubuntu-20.04
2323 - macos-latest
24- - windows-latest
2524 ruby :
2625 - " 3.0"
2726 - 2.7
@@ -31,19 +30,24 @@ jobs:
3130 - 2.x
3231 python_architecture :
3332 - x64
33+ venv :
34+ - " "
3435 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: "" }
4751
4852 steps :
4953 - uses : actions/checkout@v2
6872
6973 - run : python lib/pycall/python/investigator.py
7074
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+
7184 - run : rake
7285 env :
7386 PYTHON : python
@@ -92,23 +105,44 @@ jobs:
92105 with :
93106 fetch-depth : 1
94107
108+ - uses : conda-incubator/setup-miniconda@v2
109+ with :
110+ activate-environment : test
111+ python-version : ${{ matrix.python }}
112+
95113 - uses : ruby/setup-ruby@v1
96114 if : matrix.ruby_version != 'master-nightly'
97115 with :
98116 ruby-version : ${{ matrix.ruby }}
99117
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
103134
104135 - run : conda install numpy
136+ shell : bash -l {0}
105137
106138 - run : bundle install
107139
108140 - run : rake compile
109141
110142 - run : python lib/pycall/python/investigator.py
143+ shell : bash -l {0}
111144
112145 - run : rake
113146 env :
114147 PYTHON : python
148+ shell : bash -l {0}
0 commit comments