From eeefc83a85ba5e91b98c4e29fb9b20896612cc8c Mon Sep 17 00:00:00 2001 From: Johannes Hoppe Date: Thu, 7 Nov 2019 13:12:09 +0900 Subject: [PATCH] Ref #30962 -- Added GitHub actions --- .github/workflows/tests.yml | 38 +++++++++++++++++++++++++++++++++++++ MANIFEST.in | 1 + 2 files changed, 39 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000000000..f400cd0b055e6 --- /dev/null +++ b/.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 diff --git a/MANIFEST.in b/MANIFEST.in index 0e131eb1793e6..db6b62721b7d8 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -15,3 +15,4 @@ graft scripts graft tests global-exclude __pycache__ global-exclude *.py[co] +prune .github