Skip to content

Push smc.py functions to utils.py, population.py, and make a kde.py #63

Push smc.py functions to utils.py, population.py, and make a kde.py

Push smc.py functions to utils.py, population.py, and make a kde.py #63

# Adapted from https://github.com/actions/starter-workflows/blob/main/ci/python-app.yml
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Lint and Test Python Package
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
miniforge-variant: Mambaforge
channels: conda-forge
python-version: ${{ matrix.python-version }}
activate-environment: abc-ci
environment-file: environment.yml
use-mamba: true
- name: Install the approxbayescomp package
run: |
pip install .[dev]
- name: Lint with flake8
run: |
# 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
flake8 . --count --exit-zero --ignore=E203,E266,E501,W503,F403,F401,E402 --statistics
- name: Test with pytest
run: |
pytest