Skip to content

fix(build): Fix the build script #23

fix(build): Fix the build script

fix(build): Fix the build script #23

Workflow file for this run

name: Python package
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
python-version:
- "3.9"
concurrency:
group: ci-build-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: latest
mamba-version: "*"
environment-file: conda/dev.yaml
channels: conda-forge,nodefaults
activate-environment: pyreaddbc
use-mamba: true
miniforge-variant: Mambaforge
- name: Install dependencies
run: |
poetry config virtualenvs.create false
poetry build
poetry install
- 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
- name: Test with pytest
run: |
poetry run pytest -vv tests/