Skip to content

Commit

Permalink
Add GHA tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chess-octane committed Feb 20, 2024
1 parent 4401ae4 commit a25e641
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "CI"

on: [push, pull_request]

jobs:
test_matrix:
strategy:
matrix:
django_version: ['3.2.24', '4.2.10']

test:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup Python 3.8
uses: actions/setup-python@v5
with:
python-version: '3.8'

- name: Install dependencies
run: pip install -r requirements-dev.txt Django==${{ matrix.django_version }}

- name: Install local library
run: pip install -e .

- name: Run tests
run: pytest
1 change: 0 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ coverage
pytest>=3.6
pytest-cov
pytest-django
Django
sendgrid>=3.6.5,<4

0 comments on commit a25e641

Please sign in to comment.