Skip to content

Commit ca8fec8

Browse files
committed
install sql deps only for sql backend tests
1 parent e46ae73 commit ca8fec8

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/ci-test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
# with:
6969
# prefix-key: "mongo-db"
7070
# images: mongo:latest
71+
7172
- name: Start MongoDB in docker
7273
if: matrix.backend == 'mongodb'
7374
run: |
@@ -77,6 +78,7 @@ jobs:
7778
sleep 5
7879
# show running containers
7980
docker ps -a
81+
8082
- name: Unit tests (DB)
8183
if: matrix.backend == 'mongodb'
8284
run: pytest -m "mongo" --cov=cachier --cov-report=term --cov-report=xml:cov.xml
@@ -96,6 +98,11 @@ jobs:
9698
sleep 10
9799
docker ps -a
98100
101+
- name: Install SQL core test dependencies (SQL/Postgres)
102+
if: matrix.backend == 'postgres'
103+
run: |
104+
python -m pip install -e . -r tests/sql_requirements.txt
105+
99106
- name: Unit tests (SQL/Postgres)
100107
if: matrix.backend == 'postgres'
101108
env:

tests/requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,3 @@ pandas
1313
# to be able to run `python setup.py checkdocs`
1414
collective.checkdocs
1515
pygments
16-
SQLAlchemy
17-
psycopg2-binary

tests/sql_requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# for SQL core tests
2+
SQLAlchemy
3+
psycopg2-binary

0 commit comments

Comments
 (0)