diff --git a/.github/workflows/index.yml b/.github/workflows/index.yml new file mode 100644 index 00000000..ade109c4 --- /dev/null +++ b/.github/workflows/index.yml @@ -0,0 +1,32 @@ +name: Build + +on: + push: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: + - 2.7 + - 3.4 + - 3.5 + - 3.6 + - 3.7 + - 3.8 + - 3.9 + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install tox tox-gh-actions + - name: Run tests + run: | + tox diff --git a/tox.ini b/tox.ini index 03151f9e..373233f5 100644 --- a/tox.ini +++ b/tox.ini @@ -10,7 +10,7 @@ envlist = flake8 isort -[tox:travis] +[gh-actions] 2.7 = py27-django111 3.4 = py34-django{111,20} 3.5 = py35-django{111,20,21,22}