summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kluyver <thomas@kluyver.me.uk>2022-06-05 12:28:03 +0100
committerThomas Kluyver <thomas@kluyver.me.uk>2022-06-05 12:28:03 +0100
commit3f6a5205f500634c8df33a79619591cabc6738e3 (patch)
treece639474feda5535bee62df6b62d5c9751f0d5d7
parent09abe3f6dccc2910b326df668a5215448eb55b78 (diff)
Switch CI from Travis to Github
-rw-r--r--.github/workflows/test.yml25
-rw-r--r--.travis.yml10
2 files changed, 25 insertions, 10 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..3a7c63a
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,25 @@
+name: Test
+
+on: [push, pull_request]
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ python-version: [ 2.7, 3.6, 3.7, 3.8, 3.9, 3.10]
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Setup Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python-version }}
+
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip wheel
+ pip install . pytest
+
+ - name: Run tests
+ run: pytest
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 5687262..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-language: python
-python:
- - 3.8
- - 3.7
- - 3.6
- - 2.7
-
-install: pip install .
-
-script: nosetests