Skip to content

Commit e77b19e

Browse files
committed
re-organize project
1 parent 50442ee commit e77b19e

File tree

161 files changed

+8002
-10121
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+8002
-10121
lines changed

.coveragerc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
[run]
22
source =
3-
.
4-
omit =
5-
.tox/*
6-
travis_pypi_setup.py
7-
setup.py
3+
./src
84
[report]
95
exclude_lines =
106
pragma: no cover

.github/workflows/test.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: test
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: [ '3.5', '3.6', '3.7', '3.8' ]
11+
postgres-version: [ '9.6', '12.1' ]
12+
services:
13+
postgres:
14+
image: fantix/postgres-ssl:${{ matrix.postgres-version }}
15+
env:
16+
POSTGRES_USER: gino
17+
ports:
18+
- 5432:5432
19+
# needed because the postgres container does not provide a healthcheck
20+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
21+
steps:
22+
- name: Checkout source code
23+
uses: actions/checkout@v1
24+
- name: Set up Python
25+
uses: actions/setup-python@v1
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
- name: virtualenv cache
29+
uses: actions/cache@preview
30+
with:
31+
path: ~/.cache/pypoetry/virtualenvs
32+
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles(format('{0}{1}', github.workspace, '/poetry.lock')) }}
33+
restore-keys: |
34+
${{ runner.os }}-${{ matrix.python-version }}-poetry-
35+
- name: Install Python dependencies
36+
run: |
37+
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
38+
$HOME/.poetry/bin/poetry install
39+
- name: Test with pytest
40+
env:
41+
DB_HOST: localhost
42+
DB_USER: gino
43+
run: |
44+
$HOME/.poetry/bin/poetry run pytest --cov=src --cov-fail-under=95 --cov-report xml
45+
- name: Check code format with black
46+
if: matrix.python-version >= '3.6'
47+
run: |
48+
$HOME/.poetry/bin/poetry run black --check src
49+
- name: Submit coverage report
50+
if: matrix.python-version == '3.8' && matrix.postgres-version == '12.1'
51+
env:
52+
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_TOKEN }}
53+
run: |
54+
pip install codacy-coverage
55+
python-codacy-coverage -r coverage.xml

.pyup.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.tx/config

Lines changed: 0 additions & 206 deletions
This file was deleted.

AUTHORS.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Credits
33
=======
44

5+
.. contents:: Table of Contents
6+
57
Development Lead
68
----------------
79

CONTRIBUTING.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
Contributing
55
============
66

7+
.. contents:: Table of Contents
8+
79
Contributions are welcome, and they are greatly appreciated! Every
810
little bit helps, and credit will always be given.
911

HISTORY.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
History
33
=======
44

5+
.. contents:: Table of Contents
6+
57
GINO 0.8
68
--------
79

MANIFEST.in

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)