Skip to content

Merge branch 'main' into dev #85

Merge branch 'main' into dev

Merge branch 'main' into dev #85

name: Python Package using Conda
env:
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: "pytest tests"
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
mamba-version: "*"
channels: conda-forge
channel-priority: true
activate-environment: tyssue
environment-file: environment.yml
- name: install tyssue github action
shell: bash -l {0}
run: pip install -v .[dev]
- name: Lint with flake8
shell: bash -l {0}
run: |
mamba 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
shell: bash -l {0}
run: |
mamba install pytest
make test