fix build config?
@@ -11,7 +11,7 @@ jobs:
max-parallel: 20
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
- python-version: [3.6, 3.7, 3.8, 3.9, 3.10]
+ python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
steps:
- uses: conda-incubator/setup-miniconda@v2
@@ -25,26 +25,26 @@ jobs:
run: conda list
- name: Install dependencies
run: |
- python -m pip install --upgrade pip
- pip install flit
+ python3 -m pip install --upgrade pip
+ pip3 install flit
conda install numpy scipy cython numdifftools pplpy
- name: Install package
env:
FLIT_ALLOW_INVALID: "1"
run: |
flit install --deps=all
- pip install . --force-reinstall
+ pip3 install . --force-reinstall
- name: Lint with flake8
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == 3.6 }}
run: |
- pip install flake8
+ pip3 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.
flake8 . --count --exit-zero --max-complexity=10 --statistics
- name: Test with pytest
run: |
- pip install pytest
+ pip3 install pytest
pytest
- name: Codecov
uses: codecov/codecov-action@v1.4.1
