File tree Expand file tree Collapse file tree 1 file changed +18
-10
lines changed Expand file tree Collapse file tree 1 file changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,25 @@ jobs:
25
25
POSTGRES_USER : postgres
26
26
POSTGRES_PASSWORD : postgres
27
27
POSTGRES_DB : ci_db_test
28
- TEST_DATABASE_URL : postgresql://postgres:postgres@localhost/ci_db_test
29
- TEST_DATABASE_ASYNC_URL : postgresql+asyncpg://postgres:postgres@localhost/ci_db_test
30
28
ports :
31
29
- 5432:5432
32
30
options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
33
31
steps :
34
- - run : sudo apt-get update
35
- - run : printenv
36
- - run : ls
37
- - run : sudo pip install setuptools-rust
38
- - run : sudo python -m pip install --upgrade pip
39
- - run : sudo pip install --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org -r requirements.txt
40
- - run : coverage run -m pytest ./tests/test_implementations
41
- - run : coveralls
32
+ - uses : actions/checkout@v3
33
+ - name : Set up Python ${{ matrix.python-version }}
34
+ uses : actions/setup-python@v1
35
+ with :
36
+ python-version : ${{ matrix.python-version }}
37
+ - name : Install dependencies
38
+ run : |
39
+ python -m pip install --upgrade pip
40
+ pip install -r requirements.txt
41
+ - name : Enable Postgres Trigram Extension
42
+ run : |
43
+ PGPASSWORD=postgres psql -U postgres -h 127.0.0.1 -p ${{ job.services.postgres.ports[5432] }} -d ci_db_test -c "CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";"
44
+ - name : Test with unittest
45
+ env :
46
+ TEST_DATABASE_URL : postgresql://postgres:postgres@localhost/ci_db_test
47
+ TEST_DATABASE_ASYNC_URL : postgresql+asyncpg://postgres:postgres@localhost/ci_db_test
48
+ run : |
49
+ python -m unittest discover -s ./tests/test_implementations
You can’t perform that action at this time.
0 commit comments