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