From f110bd34ab5f2517257ee0bf74c2d47471f292a0 Mon Sep 17 00:00:00 2001 From: Syed Faheel Ahmad Date: Sun, 3 Dec 2023 14:19:02 +0530 Subject: [PATCH] Replace Travis CI with GitHub Actions --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ .travis.yml | 14 -------------- 2 files changed, 27 insertions(+), 14 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..df392b7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: + pull_request: + push: + branches: + - master + +jobs: + test: + name: ${{ matrix.os }} / Python ${{ matrix.python-version }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: + - 3.10 + - 3.11 + - 3.12 + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Run tests + run: python -m tests.test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index dc0dcef..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -dist: xenial -language: python -python: - - "3.4" - - "3.5" - - "3.6" - - "3.7" - - "3.8-dev" -install: - - pip install --upgrade pipenv - - pipenv --three - - pipenv install --dev -script: - - python3 -m tests.test