h3-py icon indicating copy to clipboard operation
h3-py copied to clipboard

Build/test for Windows/Py2.7

Open ajfriend opened this issue 5 years ago • 3 comments

ajfriend avatar May 20 '20 20:05 ajfriend

See: https://github.com/uber/h3-py/pull/113#issuecomment-631630669

ajfriend avatar May 20 '20 20:05 ajfriend

Also, on windows, should we be building with various compliers to figure out the options needed?

ajfriend avatar May 20 '20 21:05 ajfriend

Something like this:

name: CI-windows_py27

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

env:
  CC: cl.exe
  CXX: cl.exe

jobs:
  tests:
    name: Python 2.7
    runs-on: windows-latest

    steps:
      - uses: actions/[email protected]
        with:
          submodules: recursive

      - uses: actions/setup-python@v2
        with:
          python-version: 2.7

      - name: Add msbuild to PATH
        uses: microsoft/[email protected]
        with:
          vs-version: 9.0

      - uses: ilammy/[email protected]
        with:
          toolset: 9

      - name: Install dependencies
        run: |
          python -VV
          python -m site
          python -m pip install --upgrade pip setuptools wheel

      - name: install from source
        run: pip install .

      - name: Install dev requirements
        run: pip install -r requirements-dev.txt

      - name: Lint
        run: flake8 src/h3 setup.py tests

      - name: Tests
        run: pytest --cov=h3 --full-trace --cov-report=xml

ajfriend avatar May 21 '20 16:05 ajfriend