Skip to content

Ignore empty ADC events #38

Ignore empty ADC events

Ignore empty ADC events #38

Workflow file for this run

name: Linting and tests
on:
push:
branches: [ main ]
tags: [ '*' ]
pull_request:
branches: [ main ]
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: install
run: |
python -m pip install .
- name: lint
run: |
python -m pip install flake8
# stop the build if there are Python syntax errors or undefined names
python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: test
run: |
python -m pip install pytest
python -m pytest -vv