|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: [ push, pull_request ] |
| 4 | + |
| 5 | +jobs: |
| 6 | + build-default: |
| 7 | + runs-on: ubuntu-20.04 |
| 8 | + |
| 9 | + strategy: |
| 10 | + matrix: |
| 11 | + python-version: [3.6, 3.7, 3.8] |
| 12 | + |
| 13 | + steps: |
| 14 | + - uses: actions/checkout@v2 |
| 15 | + |
| 16 | + - name: Set up Python ${{ matrix.python-version }} |
| 17 | + uses: actions/setup-python@v2 |
| 18 | + with: |
| 19 | + python-version: ${{ matrix.python-version }} |
| 20 | + |
| 21 | + - name: Install packages |
| 22 | + run: sudo apt-get install -y -qq libboost-dev libexpat1-dev zlib1g-dev libbz2-dev libproj-dev libgeos-dev |
| 23 | + |
| 24 | + - uses: ./.github/actions/install-dependencies |
| 25 | + |
| 26 | + - name: Build package |
| 27 | + run: python setup.py build |
| 28 | + shell: bash |
| 29 | + |
| 30 | + - name: Run tests |
| 31 | + run: python run_tests.py |
| 32 | + shell: bash |
| 33 | + working-directory: test |
| 34 | + |
| 35 | + |
| 36 | + build-ubuntu-1604: |
| 37 | + runs-on: ubuntu-16.04 |
| 38 | + |
| 39 | + strategy: |
| 40 | + matrix: |
| 41 | + compiler: [gcc, clang] |
| 42 | + |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v2 |
| 45 | + |
| 46 | + - uses: actions/setup-python@v2 |
| 47 | + with: |
| 48 | + python-version: 3.5 |
| 49 | + |
| 50 | + - name: Install packages |
| 51 | + run: sudo apt-get install -y -qq libboost-dev libexpat1-dev zlib1g-dev libbz2-dev libproj-dev libgeos-dev |
| 52 | + |
| 53 | + - uses: ./.github/actions/install-dependencies |
| 54 | + |
| 55 | + - name: Build package |
| 56 | + run: python setup.py build |
| 57 | + shell: bash |
| 58 | + env: |
| 59 | + CC: gcc-5 |
| 60 | + CXX: g++-5 |
| 61 | + if: ${{ matrix.compiler == 'gcc' }} |
| 62 | + |
| 63 | + - name: Build package |
| 64 | + run: python setup.py build |
| 65 | + shell: bash |
| 66 | + env: |
| 67 | + CC: clang-6.0 |
| 68 | + CXX: clang++-6.0 |
| 69 | + if: ${{ matrix.compiler == 'clang' }} |
| 70 | + |
| 71 | + - name: Run tests |
| 72 | + run: python run_tests.py |
| 73 | + shell: bash |
| 74 | + working-directory: test |
| 75 | + |
| 76 | + build-ubuntu-2004: |
| 77 | + runs-on: ubuntu-20.04 |
| 78 | + |
| 79 | + strategy: |
| 80 | + matrix: |
| 81 | + compiler: [gcc, clang] |
| 82 | + |
| 83 | + steps: |
| 84 | + - uses: actions/checkout@v2 |
| 85 | + |
| 86 | + - uses: actions/setup-python@v2 |
| 87 | + with: |
| 88 | + python-version: 3.9 |
| 89 | + |
| 90 | + - name: Install packages |
| 91 | + run: sudo apt-get install -y -qq libboost-dev libexpat1-dev zlib1g-dev libbz2-dev libproj-dev libgeos-dev |
| 92 | + |
| 93 | + - uses: ./.github/actions/install-dependencies |
| 94 | + |
| 95 | + - name: Build package |
| 96 | + run: python setup.py build |
| 97 | + shell: bash |
| 98 | + env: |
| 99 | + CC: gcc-10 |
| 100 | + CXX: g++-10 |
| 101 | + if: ${{ matrix.compiler == 'gcc' }} |
| 102 | + |
| 103 | + - name: Build package |
| 104 | + run: python setup.py build |
| 105 | + shell: bash |
| 106 | + env: |
| 107 | + CC: clang-10 |
| 108 | + CXX: clang++-10 |
| 109 | + if: ${{ matrix.compiler == 'clang' }} |
| 110 | + |
| 111 | + - name: Run tests |
| 112 | + run: python run_tests.py |
| 113 | + shell: bash |
| 114 | + working-directory: test |
| 115 | + |
| 116 | + build-macos: |
| 117 | + runs-on: macos-latest |
| 118 | + |
| 119 | + steps: |
| 120 | + - uses: actions/checkout@v2 |
| 121 | + |
| 122 | + - uses: actions/setup-python@v2 |
| 123 | + with: |
| 124 | + python-version: 3 |
| 125 | + |
| 126 | + - name: Install packages |
| 127 | + run: brew install boost geos |
| 128 | + shell: bash |
| 129 | + |
| 130 | + - uses: ./.github/actions/install-dependencies |
| 131 | + |
| 132 | + - name: Build package |
| 133 | + run: python setup.py build |
| 134 | + shell: bash |
| 135 | + |
| 136 | + - name: Run tests |
| 137 | + run: python run_tests.py |
| 138 | + shell: bash |
| 139 | + working-directory: test |
| 140 | + |
| 141 | + |
0 commit comments