From 86e638ab18d417ab8d3f7eac59b3db44428023b4 Mon Sep 17 00:00:00 2001 From: collerek Date: Fri, 20 Nov 2020 11:40:43 +0100 Subject: [PATCH] remove travis, switch to github actions --- .github/workflows/test-package.yml | 2 +- .travis.yml | 33 ------------------------------ 2 files changed, 1 insertion(+), 34 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml index 99df042..6c369bc 100644 --- a/.github/workflows/test-package.yml +++ b/.github/workflows/test-package.yml @@ -50,9 +50,9 @@ jobs: run: | python -m pip install --upgrade pip if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - run: bash DATABASE_URL=sqlite:///testsuite.db scripts/test.sh - run: bash DATABASE_URL=mysql://username:password@localhost:3306/testsuite scripts/test.sh - run: bash DATABASE_URL=postgresql://username:password@localhost:5432/testsuite scripts/test.sh + - run: bash DATABASE_URL=sqlite:///testsuite scripts/test.sh - run: mypy --config-file mypy.ini ormar tests - name: Upload coverage uses: codecov/codecov-action@v1 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f3c6d41..0000000 --- a/.travis.yml +++ /dev/null @@ -1,33 +0,0 @@ -language: python - -dist: xenial - -cache: pip - -python: - - "3.6" - - "3.7" - - "3.8" - - -services: - - postgresql - - mysql - - -install: - - pip install -U -r requirements.txt - -before_script: - - psql -c 'create database test_database;' -U postgres - - echo 'create database test_database;' | mysql - - -script: - - DATABASE_URL=postgresql://localhost/test_database scripts/test.sh - - DATABASE_URL=mysql://localhost/test_database scripts/test.sh - - DATABASE_URL=sqlite:///test.db scripts/test.sh - - mypy --config-file mypy.ini ormar tests - -after_script: - - codecov \ No newline at end of file