remove travis, switch to github actions
This commit is contained in:
2
.github/workflows/test-package.yml
vendored
2
.github/workflows/test-package.yml
vendored
@ -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
|
||||
|
||||
33
.travis.yml
33
.travis.yml
@ -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
|
||||
Reference in New Issue
Block a user