Skip to content

Merge pull request #17 from moka-guys/development #36

Merge pull request #17 from moka-guys/development

Merge pull request #17 from moka-guys/development #36

name: Samplesheet Validator
on:
push:
branches:
- main
- 'feature/**'
- 'development'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10.6']
steps:
- name: Checkout head
uses: actions/checkout@v3
with:
fetch-depth: 2
run: git checkout HEAD^
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install flake8==6.0.0 wheel==0.38.4 pytest==7.2.1
pip3 install -r requirements.txt
- name: Lint with flake8
run: |
# stop the build if there are:
# - syntax errors (E9)
# - common assertion and comparison gotchas (F63)
# - control flow gotchas (F7)
# - undefined names (F82)
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=120 --statistics
- name: Test with pytest
run: |
python3 -m pytest