diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b56bc52 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI + +on: + push: + branches: + - 'master' + pull_request: + branches: + - 'master' + +jobs: + test: + name: Test Suite + runs-on: ubuntu-latest + strategy: + matrix: + include: + - python: python3.6 + dist: ubuntu:bionic + - python: python3.8 + dist: ubuntu:focal + #- python: python3.10 + # dist: ubuntu:jammy + steps: + - uses: actions/checkout@v3 + - name: Pull docker container + run: docker pull ${{ matrix.dist }} + - name: Run test + run: docker run -v $PWD:/build/ -e PYTHON="${{ matrix.python }}" "${{ matrix.dist }}" /build/ci/run.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 957daae..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: generic -services: - - docker -env: - - PYTHON=python3.5 - DIST=ubuntu:xenial - - PYTHON=python3.6 - DIST=ubuntu:artful - -install: - - docker pull "$DIST" -script: - - docker run -v $PWD:/build/ -e PYTHON="$PYTHON" "$DIST" /build/ci/run.sh