diff --git a/.github/workflows/passbook.yml b/.github/workflows/passbook.yml new file mode 100644 index 0000000..7390eb9 --- /dev/null +++ b/.github/workflows/passbook.yml @@ -0,0 +1,31 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Passbook + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.8] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -r requirements_test.txt + - name: Test with pytest + run: | + py.test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 059bd87..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: python -dist: xenial -sudo: true -python: - - "3.5" - - "3.6" - - "3.7" - - "3.8" -install: - - pip install tox - - pip install tox-travis -script: - - tox -before_install: - - sudo apt-get -qq update - - sudo apt-get install -y libssl-dev swig diff --git a/README.md b/README.md index 24c7299..c82b2fe 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Passbook -[![Build Status](https://travis-ci.org/devartis/passbook.svg?branch=master)](https://travis-ci.org/devartis/passbook) +[![Build Status](https://github.com/devartis/passbook/actions/workflows/passbook.yml/badge.svg)](https://github.com/devartis/passbook/actions) Python library to create Apple Wallet (.pkpass) files (Apple Wallet has previously been known as Passbook in iOS 6 to iOS 8). diff --git a/requirements.txt b/requirements.txt new file mode 100755 index 0000000..ff66fd5 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +# GitHub Actions requires a file "requirements.txt" or "pyproject.toml". diff --git a/setup.py b/setup.py index cbd552c..69284c8 100755 --- a/setup.py +++ b/setup.py @@ -23,9 +23,6 @@ 'Development Status :: 3 - Alpha', 'Environment :: Other Environment', 'Intended Audience :: Developers', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3 :: Only', 'Topic :: Software Development :: Libraries :: Python Modules', diff --git a/tox.ini b/tox.ini index 4d3b443..49c8aa8 100755 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,5 @@ [tox] envlist = - py35 - py36 - py37 py38 [testenv]