Skip to content

add codecov token; apply prettier #112

add codecov token; apply prettier

add codecov token; apply prettier #112

name: Multi-Platforms
on: [push]
jobs:
miniconda:
name: Miniconda ${{ matrix.os }} for Python ${{ matrix.version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
version: ["3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
environment-file: environment.yml
python-version: ${{ matrix.version }}
auto-activate-base: false
- shell: bash -l {0}
run: |
conda info
conda list
- name: Lint
shell: bash -l {0}
run: |
conda install flake8
python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run pytest
shell: bash -l {0}
run: |
conda install pytest
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install git+https://github.com/luk036/lds-gen.git
python setup.py develop
pytest