Skip to content

Commit

Permalink
Testing also the inno server
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandru-m-g committed Nov 20, 2023
1 parent b5fa8e8 commit 03fd2ea
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
run: pytest
env:
TESTS_SPREADSHEET_URL: ${{ vars.TESTS_SPREADSHEET_URL }}
BASE_URL: ${{ vars.BASE_URL_DEMO }}
BASE_URL: ${{ secrets.BASE_URL_DEMO }}
28 changes: 28 additions & 0 deletions .github/workflows/run-tests-inno.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Run tests on inno

on:
workflow_dispatch:
schedule:
- cron: '8 7 * * *'

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Checkout code
uses: actions/checkout@v3

- name: Install requirements
run: |
pip install -r requirements.txt
- name: Test with pytest
run: pytest
env:
TESTS_SPREADSHEET_URL: ${{ vars.TESTS_SPREADSHEET_URL }}
BASE_URL: ${{ secrets.BASE_URL_INNO }}
2 changes: 1 addition & 1 deletion .github/workflows/run-tests-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
run: pytest
env:
TESTS_SPREADSHEET_URL: ${{ vars.TESTS_SPREADSHEET_URL }}
BASE_URL: ${{ vars.BASE_URL_STAGE }}
BASE_URL: ${{ secrets.BASE_URL_STAGE }}
2 changes: 1 addition & 1 deletion util/config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os


BASE_URL = os.getenv("BASE_URL", "https://stage.hapi-humdata-org.ahconu.org/")
BASE_URL = os.getenv("BASE_URL", "https://HAPI_SERVER_URL/")
TESTS_SPREADSHEET_URL = os.getenv('TESTS_SPREADSHEET_URL',
'https://docs.google.com/spreadsheets/d/e/2PACX-1vTFjBRwN0KGAhxH1ujSQR17fjaSabkHCht3Jhq9gUqjON5ONYx_K_avBui4SulTgZ3SrKkFBoFRHZIH/pub?gid=0&single=true&output=csv')

Expand Down

0 comments on commit 03fd2ea

Please sign in to comment.