Skip to content

Skeleton for documentation #5

Skeleton for documentation

Skeleton for documentation #5

Workflow file for this run

name: Quality Control
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
lint-and-format:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python 3.10.15
uses: actions/setup-python@v4
with:
python-version: 3.10.15
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint black ratelimit requests urllib3 python-squarelet python_dateutil pytest
- name: Run Pylint on muckrock directory
run: |
pylint --disable=missing-function-docstring,too-many-instance-attributes,too-many-arguments,too-many-positional-arguments src/muckrock
- name: Run Black on muckrock directory
run: |
black src/muckrock
run-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
env:
MR_USER: ${{ secrets.MR_USER }}
MR_PASSWORD: ${{ secrets.MR_PASSWORD }}
REG_USER: ${{ secrets.REG_USER }}
REG_PASSWORD: ${{ secrets.REG_PASSWORD }}
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
pytest src/muckrock/tests.py