h3-py
h3-py copied to clipboard
Build/test for Windows/Py2.7
See: https://github.com/uber/h3-py/pull/113#issuecomment-631630669
Also, on windows, should we be building with various compliers to figure out the options needed?
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