From cd58f5b103cd8aed67ea26ef6b10128aacc6dd0c Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 2 May 2021 16:22:30 +0200 Subject: Replace Travis with GitHub actions --- .github/workflows/test.yml | 35 +++++++++++++++++++++++++++++++++++ .travis.yml | 7 ------- 2 files changed, 35 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml 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 -- cgit v1.2.3