Skip to content

Commit

Permalink
Switched to GitHub Actions for QA.
Browse files Browse the repository at this point in the history
  • Loading branch information
idlesign committed Oct 9, 2021
1 parent aab0a51 commit 9d052f3
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Python package

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

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
django-version: [2.0, 2.1, 2.2, 3.0, 3.1, 3.2]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} & Django ${{ matrix.django-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install deps
run: |
python -m pip install pytest coverage coveralls "Django~=${{ matrix.django-version }}.0"
- name: Run tests
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
run: |
coverage run --source=sitegate setup.py test
coveralls --service=github
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[pytest]
addopts = --pyargs sitegate
addopts = --pyargs
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@ def get_version():
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
)
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{36,37,38}-django{20,21,22,30,31,32}
py{36,37,38,39}-django{20,21,22,30,31,32}

install_command = pip install {opts} {packages}
skip_missing_interpreters = True
Expand Down

0 comments on commit 9d052f3

Please sign in to comment.