Skip to content

Tests against a Live Instance #21

Tests against a Live Instance

Tests against a Live Instance #21

Workflow file for this run

name: Tests against a Live Instance
on:
# allow manual runs
workflow_dispatch:
# run every day
schedule:
- cron: "0 0 * * *"
jobs:
write-tokens:
runs-on: ubuntu-latest
steps:
- name: Create API Tokens File
run: |
mkdir -p ~/.deeporigin
echo '{
"refresh": "'$DEEP_ORIGIN_REFRESH_TOKEN'",
"access": "'$DEEP_ORIGIN_ACCESS_TOKEN'"
}' > ~/.deeporigin/api_tokens
env:
DEEP_ORIGIN_REFRESH_TOKEN: ${{ secrets.DEEP_ORIGIN_REFRESH_TOKEN }}
DEEP_ORIGIN_ACCESS_TOKEN: ${{ secrets.DEEP_ORIGIN_ACCESS_TOKEN }}
test-against-live-instance:
runs-on: ubuntu-latest
env:
DEEP_ORIGIN_ORGANIZATION_ID: ${{ secrets.DEEP_ORIGIN_ORGANIZATION_ID }}
DEEP_ORIGIN_API_ENDPOINT: ${{ secrets.DEEP_ORIGIN_API_ENDPOINT }}
DEEP_ORIGIN_NUCLEUS_API_ROUTE: ${{ secrets.DEEP_ORIGIN_NUCLEUS_API_ROUTE }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
id: cached_python_setup
with:
python-version: "3.11"
cache: 'pip'
cache-dependency-path: pyproject.toml
- name: "Running tests against a live instance..."
run: |
pip install --upgrade pip
pip install --upgrade setuptools
pip install -e .[test]
make test-github-live