From bfa70f86be85f73504ea588a521fe4ba51534e6b 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 from Travis CI to GitHub Actions --- .github/workflows/passbook.yml | 31 +++++++++++++++++++++++++++++++ .travis.yml | 13 ------------- README.md | 2 +- requirements.txt | 1 + 4 files changed, 33 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/passbook.yml delete mode 100644 .travis.yml create mode 100755 requirements.txt 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".