Skip to content

Commit

Permalink
Ref #30962 -- Added GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
codingjoe committed Nov 7, 2019
1 parent 39791c8 commit eeefc83
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/tests.yml
@@ -0,0 +1,38 @@
name: Tests
on: [push, pull_request]
jobs:

flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1.1.1
- run: python -m pip install --upgrade pip setuptools flake8
- run: flake8

isort:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1.1.1
- run: python -m pip install --upgrade pip setuptools isort
- run: isort --recursive --check-only --diff django tests scripts

sqlite:
runs-on: ${{ matrix.os }}
needs: [flake8, isort]
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1.1.1
with:
python-version: ${{ matrix.python-version }}
- run: |
python -m pip install --upgrade pip setuptools
python -m pip install -e .
python -m pip install -r tests/requirements/py3.txt
- run: tests/runtests.py
1 change: 1 addition & 0 deletions MANIFEST.in
Expand Up @@ -15,3 +15,4 @@ graft scripts
graft tests
global-exclude __pycache__
global-exclude *.py[co]
prune .github

0 comments on commit eeefc83

Please sign in to comment.