Skip to content

Development

Development #22

Workflow file for this run

name: Code Quality with pylint, pytest, black
on: [push, pull_request]
jobs:
pylint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r configs/requirements.txt
pip install pylint
- name: Run pylint
continue-on-error: true
run: |
find qDNA tools -type f -name "*.py" ! -name "__init__.py" | xargs pylint
pytest:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r configs/requirements.txt
pip install pytest
- name: Run tests with pytest
run: python -m pytest
black:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black
- name: Run black
continue-on-error: true
run: black --check .