Skip to content

add dnf hook and ensure hook consistency #782

add dnf hook and ensure hook consistency

add dnf hook and ensure hook consistency #782

Workflow file for this run

name: Lint and test
on:
workflow_dispatch:
pull_request:
jobs:
lint-and-test:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- 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: Lint with flake8
run: |
pip install flake8
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --max-line-length=120 --show-source --statistics
- name: Set secret key
run: ./sbin/patchman-set-secret-key
- name: Test with django
run: ./manage.py test