From 584310322013df7bbcf04909fced7346d2bd6354 Mon Sep 17 00:00:00 2001 From: Matthijs van der Burgh Date: Wed, 1 Mar 2023 15:39:25 +0100 Subject: [PATCH 1/4] (actions) add GH actions config --- .github/workflows/main.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..c6c1cf9 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,20 @@ +name: Test + +on: [push, pull_request, workflow_dispatch] + +jobs: + test: + name: Run tests on Python ${{ matrix.python_version }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python_version: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11'] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python_version }} + - name: Test + run: | + python setup.py test From 2954ba83360b3e5f4520cd3b1f04be5db16a0a7a Mon Sep 17 00:00:00 2001 From: Matthijs van der Burgh Date: Wed, 1 Mar 2023 15:40:34 +0100 Subject: [PATCH 2/4] (actions) drop python 3.5 and 3.6 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c6c1cf9..c4addf7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - python_version: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11'] + python_version: ['2.7', '3.7', '3.8', '3.9', '3.10', '3.11'] steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 From e440c35698ef74e5f91e02167af0cebe02043350 Mon Sep 17 00:00:00 2001 From: Matthijs van der Burgh Date: Wed, 1 Mar 2023 15:41:14 +0100 Subject: [PATCH 3/4] Delete .travis.yml --- .travis.yml | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index deafd0f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: python -python: - - "2.7" - - "3.5" - - "3.6" - - "3.7" - - "3.8" - - "3.9-dev" - -# command to run tests -script: python setup.py test - From acdfc966626da98fc5575a520a3510d9b10bc1e6 Mon Sep 17 00:00:00 2001 From: Matthijs van der Burgh Date: Wed, 1 Mar 2023 15:42:24 +0100 Subject: [PATCH 4/4] (actions) display python version --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c4addf7..c646d49 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,6 +15,8 @@ jobs: - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python_version }} + - name: Display Python version + run: python --version - name: Test run: | python setup.py test