add travis and codecov

This commit is contained in:
collerek
2020-08-02 08:56:53 +02:00
parent db2a0b3ddb
commit c22de9684d
5 changed files with 42 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
coverage:
precision: 2
round: down
range: "80...100"
status:
project: yes
patch: yes
changes: yes
comment: off
+19
View 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
View File
+5 -1
View File
@@ -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`.
@@ -175,4 +178,5 @@ 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
View File
@@ -0,0 +1,7 @@
databases[sqlite]
pydantic
sqlalchemy
# Testing
pytest
pytest-cov