-
Notifications
You must be signed in to change notification settings - Fork 75
128 lines (101 loc) · 2.65 KB
/
windows.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
name: Windows
on:
push:
branches:
- master
- "check/ci/**"
- "check/windows/**"
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
test:
name: ruby-${{ matrix.ruby }}/python-${{ matrix.python }}-${{ matrix.python_architecture }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
ruby:
- "3.3"
- "3.2"
- "3.1"
- "3.0"
- "2.7"
python:
- 3.x
python_architecture:
- x64
include:
- { os: windows-latest , ruby: mingw , python: 3.x , python_architecture: x64 }
#- { os: windows-latest , ruby: mswin , python: 3.x , python_architecture: x64 }
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
- run: rake
env:
PYTHON: python
conda:
name: conda:ruby-${{ matrix. ruby }}/python-${{ matrix.python }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
ruby:
- "3.3"
python:
- 3.x
defaults:
run:
shell: pwsh
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
python-version: ${{ matrix.python }}
- run: set
shell: cmd
- name: Add conda's DLL path
run: |
echo $env:CONDA\Library\bin >> $GITHUB_PATH
echo $env:CONDA_PREFIX\Library\bin >> $GITHUB_PATH
- uses: ruby/setup-ruby@v1
if: matrix.ruby_version != 'master-nightly'
with:
ruby-version: ${{ matrix.ruby }}
- run: conda install numpy
- run: python -c 'import numpy; print(numpy)'
- run: python -c 'import os; print(os.environ)'
- run: bundle install
- run: rake compile
- run: python lib/pycall/python/investigator.py
- run: |
ruby -Ilib -Iext/pycall -rpycall -e "p PyCall.sys.version"
ruby -Ilib -Iext/pycall -rpycall -e "PyCall.import_module(:numpy)"
env:
PYTHON: python
continue-on-error: true
- run: |
echo $env:PATH
rake
env:
PYTHON: python
CONDA_DLL_SEARCH_MODIFICATION_ENABLE: 1
continue-on-error: true