Skip to content

Commit

Permalink
Merge pull request #25 from statesofpop/gh-actions
Browse files Browse the repository at this point in the history
Add Github action for pytest
maiksprenger authored Sep 10, 2022
2 parents 078dddf + 5b333d8 commit 8fb2c27
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: pytest

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]
django-version: ["3.2.0", "4.0.0", "4.1.0"]

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
python -m pip install .[tests] django~=${{ matrix.django-version }}
- name: Lint with pre-commit checks
run: |
pre-commit run -a
- name: Test with pytest
run: |
pytest

0 comments on commit 8fb2c27

Please sign in to comment.