Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2021-05-02 16:22:30 +0200
committerArthur de Jong <arthur@arthurdejong.org>2021-05-02 16:27:50 +0200
commitcd58f5b103cd8aed67ea26ef6b10128aacc6dd0c (patch)
tree1cfbcd30cd4886154db8fb01a634b5615e78b3c0
parente3bb9f23ff4bcda4fcd86476f5459339fb198efe (diff)
Replace Travis with GitHub actions
-rw-r--r--.github/workflows/test.yml35
-rw-r--r--.travis.yml7
2 files changed, 35 insertions, 7 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..6346167
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,35 @@
+---
+
+name: Test
+
+on:
+ push:
+ pull_request:
+ schedule:
+ - cron: '9 0 * * 1'
+
+jobs:
+ flake8:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Python 3.8
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.8
+ - name: Install dependencies
+ run: python -m pip install --upgrade pip tox
+ - name: Run tox
+ run: tox -e flake8 --skip-missing-interpreters false
+ eslint:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Python 3.8
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.8
+ - name: Install dependencies
+ run: python -m pip install --upgrade pip tox
+ - name: Run tox
+ run: tox -e eslint --skip-missing-interpreters false
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 490fd4a..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-language: python
-dist: bionic
-cache: pip
-python:
- - 3.8
-install: pip install tox
-script: tox --skip-missing-interpreters false