Skip to content

Commit e707984

Browse files
committed
CI: Split windows workflow
1 parent 0a67cba commit e707984

File tree

2 files changed

+114
-57
lines changed

2 files changed

+114
-57
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
os:
2222
- ubuntu-20.04
2323
- macos-latest
24-
- windows-latest
2524
ruby:
2625
- "3.0"
2726
- 2.7
@@ -42,8 +41,6 @@ jobs:
4241
- { os: ubuntu-18.04 , ruby: 2.7 , python: 3.8 , python_architecture: x64 }
4342
- { os: ubuntu-20.04 , ruby: debug , python: 3.x , python_architecture: x64 }
4443
#- { 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 }
4744

4845
steps:
4946
- uses: actions/checkout@v2
@@ -133,57 +130,3 @@ jobs:
133130
env:
134131
PYTHON: python
135132
shell: bash -l {0}
136-
137-
conda-windows:
138-
name: conda:windows-latest/${{ matrix. ruby }}/${{ matrix.python }}
139-
runs-on: windows-latest
140-
141-
strategy:
142-
fail-fast: false
143-
matrix:
144-
ruby:
145-
- "3.0"
146-
python:
147-
- 3.8
148-
149-
defaults:
150-
run:
151-
shell: pwsh
152-
153-
steps:
154-
- uses: actions/checkout@v2
155-
with:
156-
fetch-depth: 1
157-
158-
- uses: conda-incubator/setup-miniconda@v2
159-
with:
160-
activate-environment: test
161-
python-version: ${{ matrix.python }}
162-
163-
- run: set
164-
shell: cmd
165-
166-
- name: Add conda's DLL path
167-
run: |
168-
echo $env:CONDA\Library\bin >> $GITHUB_PATH
169-
echo $env:CONDA_PREFIX\Library\bin >> $GITHUB_PATH
170-
171-
- uses: ruby/setup-ruby@v1
172-
if: matrix.ruby_version != 'master-nightly'
173-
with:
174-
ruby-version: ${{ matrix.ruby }}
175-
176-
- run: conda install numpy
177-
178-
- run: python -c 'import numpy; print(numpy)'
179-
180-
- run: bundle install
181-
182-
- run: rake compile
183-
184-
- run: python lib/pycall/python/investigator.py
185-
186-
- run: |
187-
rake
188-
env:
189-
PYTHON: python

.github/workflows/windows.yml

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
name: Windows
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
12+
13+
jobs:
14+
test:
15+
name: ruby-${{ matrix.ruby }}/python-${{ matrix.python }}-${{ matrix.python_architecture }}
16+
runs-on: windows-latest
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
ruby:
22+
- "3.0"
23+
- 2.7
24+
- 2.6
25+
python:
26+
- 3.x
27+
- 2.x
28+
python_architecture:
29+
- x64
30+
#include:
31+
#- { os: windows-latest , ruby: mswin , python: 3.x , python_architecture: x64 }
32+
#- { os: windows-latest , ruby: mingw , python: 3.x , python_architecture: x64 }
33+
34+
steps:
35+
- uses: actions/checkout@v2
36+
with:
37+
fetch-depth: 1
38+
39+
- uses: ruby/setup-ruby@v1
40+
if: matrix.ruby_version != 'master-nightly'
41+
with:
42+
ruby-version: ${{ matrix.ruby }}
43+
44+
- uses: actions/setup-python@v2
45+
with:
46+
python-version: ${{ matrix.python }}
47+
architecture: ${{ matrix.python_architecture }}
48+
49+
- run: pip install --user numpy
50+
51+
- run: bundle install
52+
53+
- run: rake compile
54+
55+
- run: python lib/pycall/python/investigator.py
56+
57+
- run: rake
58+
env:
59+
PYTHON: python
60+
61+
conda:
62+
name: conda:ruby-${{ matrix. ruby }}/python-${{ matrix.python }}
63+
runs-on: windows-latest
64+
65+
strategy:
66+
fail-fast: false
67+
matrix:
68+
ruby:
69+
- "3.0"
70+
python:
71+
- 3.8
72+
73+
defaults:
74+
run:
75+
shell: pwsh
76+
77+
steps:
78+
- uses: actions/checkout@v2
79+
with:
80+
fetch-depth: 1
81+
82+
- uses: conda-incubator/setup-miniconda@v2
83+
with:
84+
activate-environment: test
85+
python-version: ${{ matrix.python }}
86+
87+
- run: set
88+
shell: cmd
89+
90+
- name: Add conda's DLL path
91+
run: |
92+
echo $env:CONDA\Library\bin >> $GITHUB_PATH
93+
echo $env:CONDA_PREFIX\Library\bin >> $GITHUB_PATH
94+
95+
- uses: ruby/setup-ruby@v1
96+
if: matrix.ruby_version != 'master-nightly'
97+
with:
98+
ruby-version: ${{ matrix.ruby }}
99+
100+
- run: conda install numpy
101+
102+
- run: python -c 'import numpy; print(numpy)'
103+
104+
- run: bundle install
105+
106+
- run: rake compile
107+
108+
- run: python lib/pycall/python/investigator.py
109+
110+
- run: |
111+
rake
112+
env:
113+
PYTHON: python
114+

0 commit comments

Comments
 (0)