From 5ef56e2a01da7ef9d0c0345d9cca09d9619412b2 Mon Sep 17 00:00:00 2001 From: Bas van Beek Date: Wed, 25 May 2022 14:12:34 +0200 Subject: [PATCH] TST: Switch from Travis CI to GitHub Actions --- .github/workflows/pythonpackage.yaml | 48 ++++++++++++++++++++++++++++ .travis.yml | 15 --------- 2 files changed, 48 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/pythonpackage.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/pythonpackage.yaml b/.github/workflows/pythonpackage.yaml new file mode 100644 index 0000000..6ca2641 --- /dev/null +++ b/.github/workflows/pythonpackage.yaml @@ -0,0 +1,48 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Tests + +on: + push: + branches: + - master + pull_request: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + build: + name: Test ubuntu-latest python ${{ matrix.version }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + version: + - "3.8" + - "3.9" + - "3.10" + steps: + - uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.version }} + + - name: Install dependencies + run: | + pip install poetry + poetry install + + - name: Python info + run: | + which python + python --version + poetry run pip list + + - name: Run tests + run: poetry run pytest test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 076d004..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: python -dist: xenial -sudo: true -python: - - "3.5" - - "3.6" - - "3.7" -install: - - pip install tox-travis -script: - - tox -branches: - only: - - master - - develop