From 6ea696ac27f391b9422be523bdfa48ed524329cd 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 | 32 ++++++++++++++++++++++++++++++++ .travis.yml | 18 ------------------ 2 files changed, 32 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..5eb623a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +name: Python CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-18.04 + strategy: + matrix: + python-version: ["3.9"] + + steps: + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + architecture: amd64 + + - 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