Skip to content

Commit

Permalink
Uses postgres on github actions CI
Browse files Browse the repository at this point in the history
Use a variable set by github to define whether we should use the CI's
postgres as the test database
  • Loading branch information
fredkingham committed Aug 31, 2022
1 parent 9759a6a commit 06dc61b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Expand Up @@ -38,8 +38,6 @@ jobs:
run: npm install jasmine-core@2.3.4 karma@1.5 karma-coverage@1.1.1 karma-jasmine@0.3.8 karma-firefox-launcher@2.1.0 karma-coveralls@1.1.2
- name: Install opal
run: pip install -e .
env:
OPAL_TEST_USE_POSTGRES: 1
- name: Install dependencies
run: pip install -r test-requirements.txt
- run: gem install coveralls-lcov
Expand Down
2 changes: 1 addition & 1 deletion runtests.py
Expand Up @@ -113,7 +113,7 @@
}
)

if os.environ.get('USE_POSTGRES'):
if os.environ.get('GITHUB_WORKFLOW'):
test_settings_config["DATABASES"] = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
Expand Down

0 comments on commit 06dc61b

Please sign in to comment.