Skip to content

[pre-commit.ci] pre-commit autoupdate (#107) #258

[pre-commit.ci] pre-commit autoupdate (#107)

[pre-commit.ci] pre-commit autoupdate (#107) #258

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request: ~
env:
CACHE_VERSION: 4
DEFAULT_PYTHON: "3.12"
PRE_COMMIT_CACHE: ~/.cache/pre-commit
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
django-version: ["<4", "<5", "<6"]
steps:
- uses: actions/checkout@v2
- name: Python-${{ matrix.python-version }}-django${{ matrix.django-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get install -yqq gettext
pip3 install -e ".[dev]"
pip3 install "django${{ matrix.django-version }}"
- name: Lint
run: |
pre-commit run --all-files
- name: Test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python manage.py compilemessages
coverage run --source=django_zxcvbn_password_validator ./manage.py test
coverage html
coveralls debug --service=github