diff --git a/.github/workflows/UnitTesting.yaml b/.github/workflows/UnitTesting.yaml new file mode 100644 index 00000000..294f8f62 --- /dev/null +++ b/.github/workflows/UnitTesting.yaml @@ -0,0 +1,32 @@ +name: Unit Testing +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python: [2.7, 3.5, 3.6, 3.7, 3.8] + + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install tox tox-gh-actions + + - name: Run tests with Tox + run: tox diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 74c53b66..00000000 --- a/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: python -dist: xenial -python: - - "2.7" - - "3.4" - - "3.5" - - "3.6" - - "3.7" - - "3.8" - -install: - - pip install tox tox-travis - -notifications: - email: - recipients: - - aws-xray-peryton@amazon.com - on_success: never - on_failure: always - -script: - - tox diff --git a/tox.ini b/tox.ini index f314bab2..db6b9d9c 100644 --- a/tox.ini +++ b/tox.ini @@ -7,10 +7,18 @@ envlist = py{36,37,38}-django31 coverage-report +[gh-actions] +python = + 2.7: py27 + 3.5: py35 + 3.6: py36 + 3.7: py37 + 3.8: py38 + skip_missing_interpreters = True [testenv] -passenv = TOXENV CI TRAVIS TRAVIS_* CODECOV_* +passenv = TOXENV CI CODECOV_* GITHUB_* deps = pytest > 3.0.0 coverage==4.5.4