Skip to content

Commit

Permalink
Add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nezhar committed May 6, 2020
1 parent 217c580 commit 9367d69
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Module tests

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.5', '3.6', '3.7', '3.8']
django-version: ['2.2', '3.0']
exclude:
- python-version: '3.5'
django-version: '3.0'

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Install Django ${{ matrix.django-version }}
run: pip install django==${{ matrix.django-version }}

- name: Install Anexia Monitring
run: pip install .

- name: Run tests
run: cd tests/test_project/ && python manage.py test

0 comments on commit 9367d69

Please sign in to comment.