From 141cfab784049a23b64e681ef302098dde74ebbf Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Fri, 28 Jun 2024 12:03:46 +0800 Subject: [PATCH] ci: switch to github workflow --- .github/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ .travis.yml | 18 ------------------ 2 files changed, 34 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e23af32 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +name: Python CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04] + arch: [amd64] + python-version: ["3.5", "3.6", "3.7", "3.8", "3.9"] + + steps: + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + architecture: ${{ matrix.arch }} + + - name: Check out repository + uses: actions/checkout@v2 + + - name: Upgrade pip and setuptools + run: | + python -m pip install --upgrade pip setuptools + + - name: Install dependencies + run: | + pip install . + + - name: Run tests + run: | + python test/test.py diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8a2ca25..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -os: linux -arch: - - amd64 - - ppc64le - -dist: bionic -language: python -python: - - "3.5" - - "3.6" - - "3.7" - - "3.8" - - "3.9" - -script: - - pip install --upgrade pip setuptools - - pip install . - - test/test.py