3.7 isnt working, 3.8 is, how about the rest? #193
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows Testing | |
on: [push] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
C:\Miniconda\condabin\conda.bat env update --file environment.yml --name base | |
C:\Miniconda\condabin\conda.bat init powershell | |
- name: Lint with flake8 | |
run: | | |
# Activate the base environment | |
C:\Miniconda\condabin\conda.bat activate base | |
C:\Miniconda\condabin\conda.bat install flake8 | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Test with pytest | |
run: | | |
# Activate the base environment | |
C:\Miniconda\condabin\conda.bat activate base | |
C:\Miniconda\condabin\conda.bat install pytest pytest-cov coverage mock pip | |
C:\Miniconda\condabin\conda.bat install -c conda-forge shapely | |
pip install -e . | |
pytest | |