diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..98d9f88 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.11"] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip setuptools + - name: Run tests + run: python setup.py test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 02be0fb..0000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: python -python: - - "2.7" -script: python setup.py test diff --git a/README.md b/README.md index c4726df..a1e2da4 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Oneliner-izer ========= -[![Build Status](https://travis-ci.org/csvoss/onelinerizer.svg?branch=master)](https://travis-ci.org/csvoss/onelinerizer) +[![CI](https://github.com/csvoss/onelinerizer/actions/workflows/ci.yml/badge.svg)](https://github.com/csvoss/onelinerizer/actions/workflows/ci.yml) Convert any Python 2 script into a single line of code.