.github/workflows/pythonapp.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: Code Quality
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Format Check with Black
run: |
find pushshift_py/ tests/ -iname "*.py" | xargs black --check
- name: Lint with PyLint
run: |
find pushshift_py/ tests/ -iname "*.py" | xargs pylint --disable=fixme
- name: Test with pytest
run: |
python -m pytest --cov=pushshift_py/ tests/