Skip to content

Commit

Permalink
May 23rd workflow experiment 5
Browse files Browse the repository at this point in the history
  • Loading branch information
ckunki committed May 23, 2024
1 parent 013645b commit f677941
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
workflow_call:
inputs:
slow-tests:
type: string
required: false
default: 'false'
secrets:
ALTERNATIVE_GITHUB_TOKEN:
required: false
Expand All @@ -18,7 +19,7 @@ jobs:
steps:
- name: Set pytest markers
id: pytest-markers
if: ${{ ! inputs.slow-tests }}
if: ${{ inputs.slow-tests == 'false' }}
run: echo slow-tests='-m "not slow"' >> "$GITHUB_OUTPUT"

- name: Examine Inputs
Expand All @@ -29,20 +30,20 @@ jobs:
env:
PYTEST_ADDOPTS: '-o log_cli=true -o log_cli_level=INFO ${{ steps.pytest-markers.outputs.slow-tests }}'

# - name: SCM Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
#
# - name: Setup Development Environment
# uses: ./.github/actions/pytest-plugins-environment
#
# - name: Run Tests of All Plugins
# run: |
# echo "PYTEST_ADDOPTS = $PYTEST_ADDOPTS"
# just test
# 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 }}
# PYTEST_ADDOPTS: '-o log_cli=true -o log_cli_level=INFO ${{ steps.pytest-markers.outputs.slow-tests }}'
- name: SCM Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Development Environment
uses: ./.github/actions/pytest-plugins-environment

- name: Run Tests of All Plugins
run: |
echo "PYTEST_ADDOPTS = $PYTEST_ADDOPTS"
just test
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 }}
PYTEST_ADDOPTS: '-o log_cli=true -o log_cli_level=INFO ${{ steps.pytest-markers.outputs.slow-tests }}'

0 comments on commit f677941

Please sign in to comment.