Skip to content

install with pip in CI #44

install with pip in CI

install with pip in CI #44

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.8", "3.9", "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 --no-build-isolation --config-settings=editable.rebuild=true -v
- 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