From 254a57bc6756c16891645e0932544bbe9ff486f2 Mon Sep 17 00:00:00 2001 From: Chelsea Sierra Voss Date: Sun, 18 May 2025 13:40:47 -0400 Subject: [PATCH 1/2] Switch from Travis CI to GitHub Actions --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ .travis.yml | 4 ---- README.md | 2 +- 3 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0eaa606 --- /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: ["2.7", "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. From 045b732a1da0b9e019e84bd2c7546eb573373a85 Mon Sep 17 00:00:00 2001 From: Chelsea Sierra Voss Date: Sun, 18 May 2025 15:54:53 -0400 Subject: [PATCH 2/2] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0eaa606..98d9f88 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["2.7", "3.11"] + python-version: ["3.11"] steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4