From cb4b99c1ba4dc75d9957c0afb0c6aade376e0161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ba=CC=88chtold?= Date: Sun, 31 Dec 2023 11:26:51 +0100 Subject: [PATCH] Migrate to GitHub Actions --- .github/workflows/passbook.yml | 31 +++++++++++++++++++++++++++++++ .travis.yml | 13 ------------- README.md | 2 +- 3 files changed, 32 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/passbook.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/passbook.yml b/.github/workflows/passbook.yml new file mode 100644 index 0000000..1e69926 --- /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@v5 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -r requirements_text.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..f10f42e 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/mbaechtold/passbook/actions/workflows/passbook/badge.svg?branch=mba/github-actions) Python library to create Apple Wallet (.pkpass) files (Apple Wallet has previously been known as Passbook in iOS 6 to iOS 8).