Skip to content

Commit

Permalink
#7 Using dummy SaaS secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsimb committed May 17, 2024
1 parent 5ab3976 commit 4a37da2
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,6 @@ name: Checks
on: workflow_call

jobs:
debug-secrets-job:
name: Debug Secrets Access
runs-on: ubuntu-latest
steps:
- name: Print Host
env:
SAAS_HOST: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_HOST }}
run: |
echo "This is the host:"
echo "$SAAS_HOST"
version-check-job:
name: Version Check
runs-on: ubuntu-latest
Expand Down Expand Up @@ -117,19 +106,22 @@ jobs:
# - name: Calculate Test Coverage
# run: poetry run nox -s coverage -- -- --db-version ${{ matrix.exasol-version }}

# - name: Upload Artifacts
# uses: actions/upload-artifact@v3
# with:
# name: .coverage
# path: .coverage

- name: Run Tests
env:
SAAS_HOST: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_HOST }}
SAAS_ACCOUNT_ID: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_ACCOUNT_ID }}
SAAS_PAT: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_PAT }}
# SAAS_HOST: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_HOST }}
SAAS_HOST: ${{ secrets.DUMMY_SAAS_HOST }}
# SAAS_ACCOUNT_ID: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_ACCOUNT_ID }}
SAAS_ACCOUNT_ID: ${{ secrets.DUMMY_SAAS_ACCOUNT_ID }}
# SAAS_PAT: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_PAT }}
SAAS_PAT: ${{ secrets.DUMMY_SAAS_PAT }}
run: poetry run pytest test

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: .coverage
path: .coverage

- name: Fail, if SaaS tests are not activated
if: "!contains(github.event.head_commit.message, '[run-saas-tests]') && (matrix.python-version == '3.10')"
run: |
Expand Down

0 comments on commit 4a37da2

Please sign in to comment.