| 
4 | 4 | - push  | 
5 | 5 | 
 
  | 
6 | 6 | jobs:  | 
7 |  | -  test:  | 
8 |  | -    name: Test  | 
 | 7 | +  unix-like:  | 
 | 8 | +    name: Test on ${{ matrix.os }}  | 
9 | 9 |     runs-on: ${{ matrix.os }}  | 
10 | 10 | 
 
  | 
11 | 11 |     strategy:  | 
@@ -35,13 +35,74 @@ jobs:  | 
35 | 35 |           ruby-version: ${{ matrix.ruby_version }}  | 
36 | 36 | 
 
  | 
37 | 37 |       - name: Setup Python  | 
38 |  | -        uses: actions/setup-python@v1  | 
 | 38 | +        uses: actions/setup-python@v2  | 
39 | 39 |         with:  | 
40 | 40 |           python-version: ${{ matrix.python_version }}  | 
41 | 41 |           architecture: ${{ matrix.python_architecture }}  | 
42 | 42 | 
 
  | 
43 | 43 |       - 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  | 
45 | 106 |         with:  | 
46 | 107 |           fetch-depth: 1  | 
47 | 108 | 
 
  | 
 | 
0 commit comments