Skip to content

fix: allow missing secrets in CI test runs #3291

fix: allow missing secrets in CI test runs

fix: allow missing secrets in CI test runs #3291

Workflow file for this run

name: Test Templates
on:
push:
branches: [master]
paths-ignore:
- 'dist/**'
pull_request:
paths-ignore:
- 'dist/**'
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
python_lint_check:
name: Python lint check
uses: apify/workflows/.github/workflows/python_lint_check.yaml@main
with:
python_versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
python_type_check:
name: Python type check
uses: apify/workflows/.github/workflows/python_type_check.yaml@main
with:
python_versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
lint_and_test:
name: Lint and test (without templates)
runs-on: ubuntu-24.04
steps:
- name: Checkout repo
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: 'npm'
- name: Get Node.js version
id: get-node-version
run: echo "version=$(node --version | tr -d 'v' | cut -d '.' -f 1)" >> "$GITHUB_OUTPUT"
- name: Cache node_modules
uses: actions/cache@v5
with:
path: node_modules
key: ${{ runner.os }}-node-${{ steps.get-node-version.outputs.version }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ steps.get-node-version.outputs.version }}-
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
- name: Test building templates
run: npm run build
- name: Test template manifest
run: npm run test-without-templates
test-node-templates:
name: Test Node.js templates
uses: ./.github/workflows/test_node_templates.yaml
secrets: inherit
test-python-templates:
name: Test Python templates
uses: ./.github/workflows/test_python_templates.yaml
secrets: inherit
test-llm-ai-python-templates:
name: Test LLM AI Python templates
uses: ./.github/workflows/test_llm_ai_python_templates.yaml
secrets: inherit
test-llm-ai-node-templates:
name: Test LLM AI Node.js templates
uses: ./.github/workflows/test_llm_ai_node_templates.yaml
secrets: inherit
test-docker-builds:
name: Test Docker builds
uses: ./.github/workflows/test_dockerfile_builds.yaml
all-checks-passed:
name: All checks passed
if: always()
needs:
- python_lint_check
- python_type_check
- lint_and_test
- test-node-templates
- test-python-templates
- test-llm-ai-python-templates
- test-llm-ai-node-templates
- test-docker-builds
runs-on: ubuntu-latest
steps:
- name: Check results
run: |
if [[ "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
echo "::error::Some checks failed or were cancelled"
exit 1
fi
echo "All checks passed successfully"