From 4c1cb817f3528e90b0a154227380b6af607171b0 Mon Sep 17 00:00:00 2001 From: Kenta Murata Date: Mon, 25 May 2020 14:34:35 +0900 Subject: [PATCH] WIP: CI on Windows --- .github/workflows/ci.yml | 69 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 65 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17c50040..3cec849e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,8 +4,8 @@ on: - push jobs: - test: - name: Test + unix-like: + name: Test on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: @@ -35,13 +35,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