Skip to content

Commit

Permalink
feat: Add GitHub Actions workflow for scheduled Morango Integration T…
Browse files Browse the repository at this point in the history
…ests
  • Loading branch information
GarvitSinghal47 committed Mar 1, 2024
1 parent fd96c98 commit 014f98b
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/morongo_integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Morango Integration Tests

on:
schedule:
- cron: '0 0 * * 0'

jobs:
morango_integration_tests:
name: Morango Integration Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Install dependencies
run: |
pip install -r requirements/dev.txt --upgrade
pip install -r requirements/test.txt --upgrade
pip install -r requirements/base.txt --upgrade
pip install -r requirements/cext.txt --upgrade
- name: Run tests
run: python -O -m pytest kolibri/core/auth/test/test_morango_integration.py

- name: Run tests with PostgreSQL
run: |
export KOLIBRI_DATABASE_ENGINE=postgres; \
export KOLIBRI_DATABASE_NAME=default; \
export KOLIBRI_DATABASE_USER=postgres; \
export KOLIBRI_DATABASE_PASSWORD=postgres; \
export KOLIBRI_DATABASE_HOST=127.0.0.1; \
export KOLIBRI_DATABASE_PORT=15432; \
python -O -m pytest kolibri/core/auth/test/test_morango_integration.py

0 comments on commit 014f98b

Please sign in to comment.