Skip to content

Only run benchmark/test suite once all the linting/formatting/etc passes #1061

@sbryngelson

Description

@sbryngelson

Problem it solves

Run-running testing/benchmarking often.

Proposed solution

Use a yaml workflow addition that require linting/formatting, and other short checks to pass before running tests or benchmarks. e.g.,

# .github/workflows/workflow-b.yml
name: Workflow B

on:
  workflow_run:
    workflows: ["Workflow A"]
    types:
      - completed

jobs:
  job_in_b:
    if: ${{ github.event.workflow_run.conclusion == 'success' }}
    runs-on: ubuntu-latest
    steps:
      - run: echo "Workflow A finished successfully. Running workflow B."

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions