From 2677bc04c6d4a7891d954fde8631803625abcfcc Mon Sep 17 00:00:00 2001 From: Friedrich Lindenberg Date: Sun, 15 Mar 2020 13:54:34 +0100 Subject: [PATCH] Add lint, remove travis --- .github/workflows/build.yml | 3 +++ .travis.yml | 25 ------------------------- 2 files changed, 3 insertions(+), 25 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4bde969..73271f1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -57,6 +57,9 @@ jobs: DATABASE_URI: 'mysql+pymysql://mariadb:mariadb@mariadb:${{ job.services.mariadb.ports[3306] }}/dataset?charset=utf8' run: | make test + - name: Run flake8 to lint + run: | + flake8 --ignore=E501,E123,E124,E126,E127,E128 dataset - name: Build a distribution run: | python setup.py sdist bdist_wheel diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f8f5186..0000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -dist: xenial -language: python -python: - - '3.8' -services: - - mysql - - postgresql -env: - - 'DATABASE_URL=sqlite:///:memory:' - - DATABASE_URL=postgresql+psycopg2://postgres@127.0.0.1/dataset - - DATABASE_URL=mysql+pymysql://root@127.0.0.1/dataset?charset=utf8 -install: - - pip install -U pip wheel - - pip install flake8 psycopg2 PyMySQL nose - - pip install -e . -before_script: - - sh -c "if [ '$DATABASE_URL' = 'postgresql+psycopg2://postgres@127.0.0.1/dataset' ]; then psql -c 'DROP DATABASE IF EXISTS dataset;' -U postgres; fi" - - sh -c "if [ '$DATABASE_URL' = 'postgresql+psycopg2://postgres@127.0.0.1/dataset' ]; then psql -c 'create database dataset;' -U postgres; fi" - - sh -c "if [ '$DATABASE_URL' = 'mysql+pymysql://root@127.0.0.1/dataset?charset=utf8' ]; then mysql -e 'create database IF NOT EXISTS dataset DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;'; fi" -script: - - flake8 --ignore=E501,E123,E124,E126,E127,E128 dataset test - - nosetests -v -cache: - directories: - - $HOME/.cache/pip