add travis and codecov
This commit is contained in:
11
.codecov.yml
Normal file
11
.codecov.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
coverage:
|
||||||
|
precision: 2
|
||||||
|
round: down
|
||||||
|
range: "80...100"
|
||||||
|
|
||||||
|
status:
|
||||||
|
project: yes
|
||||||
|
patch: yes
|
||||||
|
changes: yes
|
||||||
|
|
||||||
|
comment: off
|
||||||
19
.travis.yml
Normal file
19
.travis.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
language: python
|
||||||
|
|
||||||
|
dist: xenial
|
||||||
|
|
||||||
|
cache: pip
|
||||||
|
|
||||||
|
python:
|
||||||
|
- "3.6"
|
||||||
|
- "3.7"
|
||||||
|
- "3.8"
|
||||||
|
|
||||||
|
install:
|
||||||
|
- pip install -U -r requirements.txt
|
||||||
|
|
||||||
|
script:
|
||||||
|
- scripts/test
|
||||||
|
|
||||||
|
after_script:
|
||||||
|
- codecov
|
||||||
@ -22,6 +22,9 @@ MySQL, and SQLite. ORM is built with:
|
|||||||
Because ORM is built on SQLAlchemy core, you can use Alembic to provide
|
Because ORM is built on SQLAlchemy core, you can use Alembic to provide
|
||||||
database migrations.
|
database migrations.
|
||||||
|
|
||||||
|
The goal was to create a simple orm that can be used directly with FastApi that bases it's data validation on pydantic.
|
||||||
|
Initial work was inspired by [`encode/orm`][encode/orm]
|
||||||
|
|
||||||
**ORM is still under development: We recommend pinning any dependencies with `orm~=0.1`**
|
**ORM is still under development: We recommend pinning any dependencies with `orm~=0.1`**
|
||||||
|
|
||||||
**Note**: Use `ipython` to try this from the console, since it supports `await`.
|
**Note**: Use `ipython` to try this from the console, since it supports `await`.
|
||||||
@ -176,3 +179,4 @@ All fields are required unless one of the following is set:
|
|||||||
[sqlalchemy-core]: https://docs.sqlalchemy.org/en/latest/core/
|
[sqlalchemy-core]: https://docs.sqlalchemy.org/en/latest/core/
|
||||||
[databases]: https://github.com/encode/databases
|
[databases]: https://github.com/encode/databases
|
||||||
[pydantic]: https://pydantic-docs.helpmanual.io/
|
[pydantic]: https://pydantic-docs.helpmanual.io/
|
||||||
|
[encode/orm]:
|
||||||
7
requirements.txt
Normal file
7
requirements.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
databases[sqlite]
|
||||||
|
pydantic
|
||||||
|
sqlalchemy
|
||||||
|
|
||||||
|
# Testing
|
||||||
|
pytest
|
||||||
|
pytest-cov
|
||||||
Reference in New Issue
Block a user