diff --git a/.github/workflows/live_tests.yaml b/.github/workflows/live_tests.yaml index b6caa2f..3debbc9 100644 --- a/.github/workflows/live_tests.yaml +++ b/.github/workflows/live_tests.yaml @@ -13,8 +13,8 @@ jobs: runs-on: ubuntu-latest env: # Secrets for API and organization - DEEP_ORIGIN_REFRESH_TOKEN: ${{ secrets.DEEP_ORIGIN_REFRESH_TOKEN }} - DEEP_ORIGIN_ACCESS_TOKEN: ${{ secrets.DEEP_ORIGIN_ACCESS_TOKEN }} + REFRESH_TOKEN: ${{ secrets.DEEP_ORIGIN_REFRESH_TOKEN }} + ACCESS_TOKEN: ${{ secrets.DEEP_ORIGIN_ACCESS_TOKEN }} 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 }} @@ -34,8 +34,8 @@ jobs: run: | mkdir -p ~/.deeporigin echo '{ - "refresh": "'$DEEP_ORIGIN_REFRESH_TOKEN'", - "access": "'$DEEP_ORIGIN_ACCESS_TOKEN'" + "refresh": "'$REFRESH_TOKEN'", + "access": "'$ACCESS_TOKEN'" }' > ~/.deeporigin/api_tokens - name: Install dependencies @@ -44,5 +44,9 @@ jobs: pip install --upgrade setuptools pip install -e .[test] + - name: Refresh API tokens using deeporigin.auth + run: | + python -c "from deeporigin import auth; auth.get_tokens(refresh=True)" + - name: Run tests against a live instance run: make test-github-live \ No newline at end of file