remove travis, switch to github actions

This commit is contained in:
collerek
2020-11-20 11:47:58 +01:00
parent 86e638ab18
commit 69137da2d5

View File

@ -50,9 +50,18 @@ 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=mysql://username:password@localhost:3306/testsuite scripts/test.sh - name: Run mysql
- run: bash DATABASE_URL=postgresql://username:password@localhost:5432/testsuite scripts/test.sh env:
- run: bash DATABASE_URL=sqlite:///testsuite scripts/test.sh DATABASE_URL: "mysql://username:password@localhost:3306/testsuite"
run: bash scripts/test.sh
- name: Run postgres
env:
DATABASE_URL: "postgresql://username:password@localhost:5432/testsuite"
run: bash scripts/test.sh
- name: Run sqlite
env:
DATABASE_URL: "sqlite:///testsuite"
run: bash 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