diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2021-05-02 16:22:30 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2021-05-02 16:27:50 +0200 |
commit | cd58f5b103cd8aed67ea26ef6b10128aacc6dd0c (patch) | |
tree | 1cfbcd30cd4886154db8fb01a634b5615e78b3c0 | |
parent | e3bb9f23ff4bcda4fcd86476f5459339fb198efe (diff) |
Replace Travis with GitHub actions
-rw-r--r-- | .github/workflows/test.yml | 35 | ||||
-rw-r--r-- | .travis.yml | 7 |
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 |