Skip to content

Commit

Permalink
WIP: CI on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkn committed May 25, 2020
1 parent 4b25edf commit fba7b41
Showing 1 changed file with 77 additions and 5 deletions.
82 changes: 77 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
name: CI

on:
- push
push:
paths:
- .github/workflows/ci.yml
- ext/**
- lib/**
- spec/**
pull-request:
paths:
- .github/workflows/ci.yml
- ext/**
- lib/**
- spec/**

jobs:
test:
name: Test
unix-like:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
Expand Down Expand Up @@ -35,13 +46,74 @@ jobs:
ruby-version: ${{ matrix.ruby_version }}

- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python_version }}
architecture: ${{ matrix.python_architecture }}

- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
fetch-depth: 1

- name: Prepare environment
run: |
gem install bundler
- name: Install requirements
run: |
pip install --user numpy
bundle install
- name: Compile pycall.so
run: |
bundle exec rake compile
- name: Python investigator
run: |
python lib/pycall/python/investigator.py
- name: Test
run: |
PYTHON=python bundle exec rake
windows:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os:
- windows-latest
ruby_version:
- 2.7.x
- 2.6.x
- 2.5.x
- 2.4.x
python_version:
- 3.8.x
- 3.7.x
- 3.6.x
- 2.7.x
python_architecture:
- x64

steps:
- name: Setup Ruby
if: matrix.ruby_version != 'master-nightly'
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python_version }}
architecture: ${{ matrix.python_architecture }}

- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1

Expand Down

0 comments on commit fba7b41

Please sign in to comment.