From 4fce7e8c42c5034d2b3c3c9459541fdb18900c19 Mon Sep 17 00:00:00 2001 From: Garvit Singhal <82756460+GarvitSinghal47@users.noreply.github.com> Date: Tue, 20 Feb 2024 14:44:26 +0530 Subject: [PATCH] Create morango.yml --- .github/workflows/morango.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/morango.yml diff --git a/.github/workflows/morango.yml b/.github/workflows/morango.yml new file mode 100644 index 0000000000..46870783a8 --- /dev/null +++ b/.github/workflows/morango.yml @@ -0,0 +1,34 @@ +name: Morango Integration Tests + +on: + schedule: + - cron: '0 0 * * 0' # Run every Sunday at midnight UTC + +jobs: + morango_integration_tests: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.x + + - name: Install dependencies + run: | + pip install tox + pip install psycopg2-binary # Install PostgreSQL driver + + - name: Run Morango Integration Tests with SQLite + env: + INTEGRATION_TEST: true + run: tox -e morango-integration-sqlite + + - name: Run Morango Integration Tests with PostgreSQL + if: success() + env: + INTEGRATION_TEST: true + run: make test-with-postgres