remove travis, switch to github actions

This commit is contained in:
collerek
2020-11-20 11:40:43 +01:00
parent 82cdadfe1a
commit 86e638ab18
2 changed files with 1 additions and 34 deletions

View File

@ -50,9 +50,9 @@ jobs:
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi 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=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=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 - run: mypy --config-file mypy.ini ormar tests
- name: Upload coverage - name: Upload coverage
uses: codecov/codecov-action@v1 uses: codecov/codecov-action@v1

View File

@ -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