Skip to content

Commit 4c1cb81

Browse files
committed
WIP: CI on Windows
1 parent 4b25edf commit 4c1cb81

File tree

1 file changed

+65
-4
lines changed

1 file changed

+65
-4
lines changed

.github/workflows/ci.yml

+65-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on:
44
- push
55

66
jobs:
7-
test:
8-
name: Test
7+
unix-like:
8+
name: Test on ${{ matrix.os }}
99
runs-on: ${{ matrix.os }}
1010

1111
strategy:
@@ -35,13 +35,74 @@ jobs:
3535
ruby-version: ${{ matrix.ruby_version }}
3636

3737
- name: Setup Python
38-
uses: actions/setup-python@v1
38+
uses: actions/setup-python@v2
3939
with:
4040
python-version: ${{ matrix.python_version }}
4141
architecture: ${{ matrix.python_architecture }}
4242

4343
- name: Checkout
44-
uses: actions/checkout@v1
44+
uses: actions/checkout@v2
45+
with:
46+
fetch-depth: 1
47+
48+
- name: Prepare environment
49+
run: |
50+
gem install bundler
51+
52+
- name: Install requirements
53+
run: |
54+
pip install --user numpy
55+
bundle install
56+
57+
- name: Compile pycall.so
58+
run: |
59+
bundle exec rake compile
60+
61+
- name: Python investigator
62+
run: |
63+
python lib/pycall/python/investigator.py
64+
65+
- name: Test
66+
run: |
67+
PYTHON=python bundle exec rake
68+
69+
windows:
70+
name: Test on ${{ matrix.os }}
71+
runs-on: ${{ matrix.os }}
72+
73+
strategy:
74+
fail-fast: false
75+
matrix:
76+
os:
77+
- windows-latest
78+
ruby_version:
79+
- 2.7.x
80+
- 2.6.x
81+
- 2.5.x
82+
- 2.4.x
83+
python_version:
84+
- 3.8.x
85+
- 3.7.x
86+
- 3.6.x
87+
- 2.7.x
88+
python_architecture:
89+
- x64
90+
91+
steps:
92+
- name: Setup Ruby
93+
if: matrix.ruby_version != 'master-nightly'
94+
uses: actions/setup-ruby@v1
95+
with:
96+
ruby-version: ${{ matrix.ruby_version }}
97+
98+
- name: Setup Python
99+
uses: actions/setup-python@v2
100+
with:
101+
python-version: ${{ matrix.python_version }}
102+
architecture: ${{ matrix.python_architecture }}
103+
104+
- name: Checkout
105+
uses: actions/checkout@v2
45106
with:
46107
fetch-depth: 1
47108

0 commit comments

Comments
 (0)