From 4cbb77492ff7d730e88deb6bdf998ec75d3fa1d0 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..0d8f23e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +name: Python CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-24.04 + strategy: + matrix: + python-version: ["3.12"] + + 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