django-fernet-encrypted-fields/.github/workflows/lint-and-test.yml
David Paul Graham 0ff2493f03
Some checks are pending
Lint & Test / lint (push) Waiting to run
Lint & Test / test (4.2, 3.10) (push) Waiting to run
Lint & Test / test (4.2, 3.11) (push) Waiting to run
Lint & Test / test (4.2, 3.12) (push) Waiting to run
Lint & Test / test (4.2, 3.13) (push) Waiting to run
Lint & Test / test (4.2, 3.14) (push) Waiting to run
Lint & Test / test (5.1, 3.10) (push) Waiting to run
Lint & Test / test (5.1, 3.11) (push) Waiting to run
Lint & Test / test (5.1, 3.12) (push) Waiting to run
Lint & Test / test (5.1, 3.13) (push) Waiting to run
Lint & Test / test (5.1, 3.14) (push) Waiting to run
Lint & Test / test (5.2, 3.10) (push) Waiting to run
Lint & Test / test (5.2, 3.11) (push) Waiting to run
Lint & Test / test (5.2, 3.12) (push) Waiting to run
Lint & Test / test (5.2, 3.13) (push) Waiting to run
Lint & Test / test (5.2, 3.14) (push) Waiting to run
Lint & Test / test (6.0, 3.12) (push) Waiting to run
Lint & Test / test (6.0, 3.13) (push) Waiting to run
Lint & Test / test (6.0, 3.14) (push) Waiting to run
Jazzband Contributing Guide (#37)
* remove non-tested django versions from the list of tested versions in the readme

* add snippet on generating SECRET_KEYs

* add contributing readme

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add file filter for github actions lint-and-test workflow

* add path filters for the lint and test github actions workflow

* use path-ignore instead of path for file filters

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-03-16 08:14:12 -04:00

74 lines
1.7 KiB
YAML

name: Lint & Test
on:
pull_request:
paths-ignore:
- "LICENCE.txt"
- "**/*.md"
- ".pre-commit-config.yaml"
push:
paths-ignore:
- "LICENCE.txt"
- "**/*.md"
- ".pre-commit-config.yaml"
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff black
- name: Lint with Ruff
run: |
ruff check .
- name: Lint with Black
run: |
black --check .
test:
strategy:
matrix:
python_version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
django_version: ["4.2", "5.1", "5.2", "6.0"]
exclude:
# Django 6.0 requires Python 3.12+
- python_version: "3.10"
django_version: "6.0"
- python_version: "3.11"
django_version: "6.0"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python_version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -q Django~=${{ matrix.django_version }}
pip install coverage pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run tests
run: |
coverage3 run --source='./encrypted_fields' manage.py test
coverage xml
# - name: "Upload coverage to Artifact"
# uses: actions/upload-artifact@v4
# with:
# name: coverage
# path: coverage.xml