Skip to content

Commit

Permalink
Merge pull request #39 from browniebroke/ci/setup
Browse files Browse the repository at this point in the history
Setup CI using GitHub actions
  • Loading branch information
fizista authored Dec 9, 2023
2 parents dfca66b + 41d2144 commit 25fbf4a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches:
- master
pull_request:

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
test:
strategy:
fail-fast: false
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
os:
- ubuntu-latest
- macOS-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: pip install tox
shell: bash
- name: Run tests
run: tox -f py$(echo ${{ matrix.python-version }} | tr -d .)
shell: bash
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Django Password Validators
==========================

.. image:: https://github.com/fizista/django-password-validators/actions/workflows/ci.yml/badge.svg?branch=master
:target: https://github.com/fizista/django-password-validators/actions/workflows/ci.yml?query=branch%3Amaster
:alt: CI status

Additional libraries for validating passwords in Django 2.2.25 or later.

django-password-validators requires Django 2.2.25 or greater.
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ deps =

commands =
python -V
{toxinidir}/tests/manage.py test
python {toxinidir}/tests/manage.py test


0 comments on commit 25fbf4a

Please sign in to comment.