From 4405e85f58490db46bb8af6d3aa62e0343bbf823 Mon Sep 17 00:00:00 2001 From: Andy Freeland Date: Fri, 15 Dec 2023 11:06:30 -0800 Subject: [PATCH] Switch from Travis to GitHub Actions Fixes #40. --- .github/workflows/test.yaml | 34 ++++++++++++++++++++++++++++++++++ .travis.yml | 20 -------------------- 2 files changed, 34 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/test.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..8fce184 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + +jobs: + unit: + name: "Py:${{ matrix.python-version }}" + runs-on: ubuntu-latest + strategy: + matrix: + python-version: + - "3.7" + - "3.8" + - "3.9" + - "3.10" + - "3.11" + steps: + - name: Checkout source code + uses: actions/checkout@v4 + + - name: Install Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install tox + run: pip install tox + + - name: Run unit tests + run: tox -e py diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 86a0a94..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ - -language: python - -branches: - only: - - master - -script: - - tox -e $TOX_ENV - -install: - - pip install tox - -matrix: - include: - - python: 2.7 - env: TOX_ENV=py27 - - python: 3.6 - env: TOX_ENV=py36 -