diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45ffa66..d9b720e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,12 +15,11 @@ on: required: false type: string secrets: - PYPI_API_TOKEN: - required: false - TEST_PYPI_API_TOKEN: + ENV_VARS: required: false + jobs: get-changed-files: name: Get Changed Files @@ -48,10 +47,11 @@ jobs: name: Test needs: - pre-commit - uses: salt-extensions/central-artifacts/.github/workflows/test-action.yml@main + # uses: salt-extensions/central-artifacts/.github/workflows/test-action.yml@main + uses: M3GH4NN/central-artifacts/.github/workflows/test-action.yml@credentials with: setup-vault: ${{ inputs.setup-vault }} - + secrets: inherit docs: name: Docs needs: @@ -126,3 +126,5 @@ jobs: if: always() run: echo "All workflows finished" + + #### diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 0994dd6..af156ab 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -7,6 +7,9 @@ on: required: false type: boolean default: false + secrets: + ENV_VARS: + required: false jobs: Linux: @@ -30,6 +33,13 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Decode environment variables for tests + env: + ENV_VARS: "${{ secrets.ENV_VARS }}" + run: | + echo "$ENV_VARS" | base64 -d >> $GITHUB_ENV + + - name: Setup Vault if: ${{ inputs.setup-vault }} uses: eLco/setup-vault@v1.0.2 @@ -57,6 +67,7 @@ jobs: SALT_REQUIREMENT: salt==${{ matrix.salt-version }} SKIP_REQUIREMENTS_INSTALL: YES run: | + nox --force-color -e tests-3 -- -vv tests/ - name: Create CodeCov Flags