aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: e91e6d661ea118b72cb5be8643dcb578aa5db96a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CI
on: [push, pull_request]

jobs:
  build:
    name: Python ${{ matrix.python }} on ${{ matrix.os }} ${{ matrix.arch }}
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os:
          - ubuntu-18.04
          - macOS-latest
          - windows-2019
        python:
          - '2.7'
          - '3.7'
        arch:
          - 'x86'
          - 'x64'
        exclude:
          - os: ubuntu-18.04
            arch: x86
          - os: macOS-latest
            arch: x86
    steps:
      - uses: actions/checkout@master
      - uses: actions/setup-python@v1
        with:
          python-version: ${{ matrix.python }}
          architecture: ${{ matrix.arch }}
      - name: Install dependencies
        run: python run.py deps
      - name: Run test suite
        run: python run.py ci
        env:
          OSCRYPTO_USE_CTYPES: 'true'
      - name: Run test suite (Mac cffi)
        run: python run.py ci
        if: runner.os == 'macOS'
      - name: Run test suite (Mac OpenSSL)
        run: python run.py ci
        if: runner.os == 'macOS'
        env:
          OSCRYPTO_USE_OPENSSL: /usr/lib/libcrypto.dylib,/usr/lib/libssl.dylib
          OSCRYPTO_USE_CTYPES: 'true'
      - name: Run test suite (Mac OpenSSL/cffi)
        run: python run.py ci
        if: runner.os == 'macOS'
        env:
          OSCRYPTO_USE_OPENSSL: /usr/lib/libcrypto.dylib,/usr/lib/libssl.dylib
      - name: Run test suite (Windows legacy API)
        run: python run.py ci
        if: runner.os == 'Windows'
        env:
          OSCRYPTO_USE_WINLEGACY: 'true'