From 3854609626d6f280c8e2d6c0dc583cc399cb4a34 Mon Sep 17 00:00:00 2001 From: Corey Oordt Date: Sat, 4 Dec 2021 09:10:26 -0600 Subject: [PATCH] Adds GitHub Actions to run Tox. #164 --- .github/workflows/run-tests.yaml | 24 ++++++++++++++++++++++++ .travis.yml | 12 ------------ tox.ini | 10 +++++++++- 3 files changed, 33 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/run-tests.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml new file mode 100644 index 0000000..154beb9 --- /dev/null +++ b/.github/workflows/run-tests.yaml @@ -0,0 +1,24 @@ +name: Run Tox tests +on: + - push + - pull_request + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [ 3.6, 3.7, 3.8, 3.9, 3.10 ] + + steps: + - uses: actions/checkout@v1 + - 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: Test with tox + run: tox diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8ac2512..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -sudo: false - -dist: xenial - -language: python - -python: - - "3.6" - -install: pip install tox-travis - -script: tox diff --git a/tox.ini b/tox.ini index 04440c5..e5243f8 100644 --- a/tox.ini +++ b/tox.ini @@ -2,9 +2,17 @@ envlist = begin py36-lint - py36-django{111,2,21,22,3,31} + py{36,37,38,39,10}-django{111,2,21,22,3,31} coverage-report +[gh-actions] +python = + 3.6: py36 + 3.7: py37 + 3.8: py38 + 3.9: py39 + 3.10: py310 + [testenv] deps= django2: Django>=2.0,<2.1