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 5d32813..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: python -dist: xenial -sudo: true -python: - - "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".