Skip to content

Commit ac3c07b

Browse files
klimburgvmalloc
andauthored
GitHub actions continued (getslash#644) (#2)
* get tests running * add a redis container * add pytest durations * update gitignore * pin back sqlalchemy and alembic test_searching.py:test_subject_search test_searching.py:test_computed_fields failed with sqlalchemy>=1.3 alembic was pinned back so pipenv could resolve dependencies * try to improve performance of postgres container https://github.community/t/insight-into-vm-performance/16199/8 * disable fsync https://pythonspeed.com/articles/faster-db-tests/ * try again * try a different postgres container https://stackoverflow.com/a/65444387 * update health check * fix envvars * remove durations from unit tests Co-authored-by: Rotem Yaari <vmalloc@gmail.com>
1 parent 44a95c0 commit ac3c07b

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,22 @@ jobs:
99
ports:
1010
- 6379:6379
1111
postgres:
12-
image: postgres:latest
12+
image: bitnami/postgresql:latest
1313
env:
14-
POSTGRES_DB: backslash
15-
POSTGRES_PASSWORD: backslash
16-
POSTGRES_USER: backslash
14+
POSTGRESQL_DATABASE: backslash
15+
POSTGRESQL_PASSWORD: backslash
16+
POSTGRESQL_USERNAME: backslash
17+
POSTGRESQL_FSYNC: "off"
1718
ports:
1819
- 5432:5432
20+
options: >-
21+
--mount type=tmpfs,destination=/var/lib/postgresql/data
22+
--health-cmd "pg_isready -d backslash -U backslash -p 5432"
23+
--health-interval 10s
24+
--health-timeout 5s
25+
--health-retries 5
26+
27+
1928
steps:
2029
- name: Install dependencies
2130
run: |

0 commit comments

Comments
 (0)