Skip to content

Commit

Permalink
Update pythonpackage.yml (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcurella committed Oct 2, 2019
1 parent 129e8f1 commit 21d05fc
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Python package

on: [push]

jobs:
tests:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [2.7, 3.5, 3.6, 3.7]
django-version: ["Django>=1.11,<2.0", "Django>=2.0,<2.1", "Django>=2.1,<2.2"]
exclude:
- python-version: 2.7
django-version: "Django>=2.0,<2.1"
- python-version: 2.7
django-version: "Django>=2.1,<2.2"

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -q "${{ matrix.django-version }}"
pip install -e .
pip install coveralls
- name: Test with pytest
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
coverage run --source django_social_share setup.py test && coveralls

0 comments on commit 21d05fc

Please sign in to comment.