-
Notifications
You must be signed in to change notification settings - Fork 75
161 lines (131 loc) · 4.3 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
name: CI
on:
push:
branches:
- master
- "check/ci/**"
- "check/unix/**"
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
test:
name: ${{ matrix.venv }}${{ matrix.os }}/${{ matrix.ruby }}/${{ matrix.python }}-${{ matrix.python_architecture }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- ubuntu-20.04
- macos-latest
ruby:
- "3.3"
- "3.2"
- "3.1"
- "3.0"
- "2.7"
python:
- "3.x"
python_architecture:
- x64
venv:
- ""
include:
# Old ruby and the latest Python 3
- { os: ubuntu-20.04 , ruby: 2.6 , python: "3.x" , python_architecture: x64 , venv: "" }
- { os: ubuntu-20.04 , ruby: 2.5 , python: "3.x" , python_architecture: x64 , venv: "" }
- { os: ubuntu-20.04 , ruby: 2.4 , python: "3.x" , python_architecture: x64 , venv: "" }
# Ruby 2.7 with Each Python 3.x
- { os: ubuntu-20.04 , ruby: 2.7 , python: "3.12" , python_architecture: x64 , venv: "" }
- { os: ubuntu-20.04 , ruby: 2.7 , python: "3.11" , python_architecture: x64 , venv: "" }
- { os: ubuntu-20.04 , ruby: 2.7 , python: "3.10" , python_architecture: x64 , venv: "" }
- { os: ubuntu-20.04 , ruby: 2.7 , python: "3.9" , python_architecture: x64 , venv: "" }
- { os: ubuntu-20.04 , ruby: 2.7 , python: "3.8" , python_architecture: x64 , venv: "" }
- { os: ubuntu-20.04 , ruby: 2.7 , python: "3.7" , python_architecture: x64 , venv: "" }
- { os: ubuntu-20.04 , ruby: 2.7 , python: "3.6" , python_architecture: x64 , venv: "" }
# Ruby-debug with the latest Python 3
- { os: ubuntu-20.04 , ruby: debug , python: "3.x" , python_architecture: x64 , venv: "" }
# The latest stable Ruby with the latest Python 3 with venv
- { os: ubuntu-20.04 , ruby: "3.3" , python: "3.x" , python_architecture: x64 , venv: "venv:" }
# macOS with venv
- { os: macos-latest , ruby: "3.3" , python: "3.x" , python_architecture: x64 , venv: "venv:" }
#- { os: macos-latest , ruby: debug , python: "3.x" , python_architecture: x64 , venv: "" }
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: ruby/setup-ruby@v1
if: matrix.ruby_version != 'master-nightly'
with:
ruby-version: ${{ matrix.ruby }}
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
architecture: ${{ matrix.python_architecture }}
- run: pip install --user numpy
- run: bundle install
- run: rake compile
- run: python lib/pycall/python/investigator.py
- name: venv examination
run: |
python -m venv ~/test-venv
source ~/test-venv/bin/activate
ruby -Ilib -Iext/pycall -rpycall -ePyCall.builtins
env:
PYCALL_DEBUG_FIND_LIBPYTHON: 1
if: ${{ matrix.venv != '' }}
- run: rake
env:
PYTHON: python
conda:
name: conda:${{ matrix.os }}/${{ matrix. ruby }}/${{ matrix.python }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
#- macos-latest
ruby:
- "3.1"
python:
- "3.10"
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
python-version: ${{ matrix.python }}
- uses: ruby/setup-ruby@v1
if: matrix.ruby_version != 'master-nightly'
with:
ruby-version: ${{ matrix.ruby }}
- name: Add Ruby path
run: |
echo >> ~/.profile
echo >> ~/.profile
IFS=:
for p in $PATH; do
case $p in
*/Ruby/*)
echo "export PATH=$p:\$PATH" >> ~/.profile
;;
esac
done
- run: cat ~/.profile
- run: bash -xe ~/.profile
- run: conda install numpy
shell: bash -l {0}
- run: bundle install
- run: rake compile
- run: python lib/pycall/python/investigator.py
shell: bash -l {0}
- run: rake
env:
PYTHON: python
shell: bash -l {0}