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 6f438b3
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "CI"

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest

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

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 with Django ${{ matrix.django_version }}"
run: pip install -e . -r requirements-dev.txt Django==${{ matrix.django_version }}

- name: Show dependencies
run: pip list

- 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 6f438b3

Please sign in to comment.