Skip to content

Commit f3e5e47

Browse files
authored
Merge pull request #105 from mrkn/github_actions
Use GitHub Actions for CI
2 parents 0b18d5b + 78a5f8f commit f3e5e47

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

.github/workflows/ci.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: CI
2+
3+
on:
4+
- push
5+
6+
jobs:
7+
test:
8+
name: Test
9+
runs-on: ${{ matrix.os }}
10+
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os:
15+
- ubuntu-18.04
16+
#- macos-latest
17+
ruby_version:
18+
- 2.6.x
19+
- 2.5.x
20+
- 2.4.x
21+
python_version:
22+
- 3.8.x
23+
- 3.7.x
24+
- 3.6.x
25+
- 2.7.x
26+
python_architecture:
27+
- x64
28+
29+
steps:
30+
- name: Setup Ruby
31+
if: matrix.ruby_version != 'master-nightly'
32+
uses: actions/setup-ruby@v1
33+
with:
34+
ruby-version: ${{ matrix.ruby_version }}
35+
36+
- name: Setup Python
37+
uses: actions/setup-python@v1
38+
with:
39+
python-version: ${{ matrix.python_version }}
40+
architecture: ${{ matrix.python_architecture }}
41+
42+
- name: Checkout
43+
uses: actions/checkout@v1
44+
with:
45+
fetch-depth: 1
46+
47+
- name: Prepare environment
48+
run: |
49+
gem install bundler
50+
51+
- name: Install requirements
52+
run: |
53+
pip install --user numpy
54+
bundle install
55+
56+
- name: Compile pycall.so
57+
run: |
58+
bundle exec rake compile
59+
60+
- name: Python investigator
61+
run: |
62+
python lib/pycall/python/investigator.py
63+
64+
- name: Test
65+
run: |
66+
PYTHON=python bundle exec rake

0 commit comments

Comments
 (0)