Skip to content

update github actions #781

update github actions

update github actions #781

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.x'

Check failure on line 13 in .github/workflows/lint-and-test.yml

View workflow run for this annotation

GitHub Actions / Lint and test

Invalid workflow file

The workflow is not valid. .github/workflows/lint-and-test.yml (Line: 13, Col: 25): Unexpected value '3.x'
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
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