Skip to content

Commit

Permalink
Workflow efficiency improvements: (#44)
Browse files Browse the repository at this point in the history
* Run build_wheels workflow only when relevant files change.
* Cancel in-progress jobs when a new commit is pushed to the same branch.
  • Loading branch information
kirkrodrigues authored Dec 11, 2023
1 parent 418093b commit dba223f
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,41 @@
name: Build

on: [push, pull_request]
on:
pull_request:
paths:
- ".clang-format"
- ".clang-tidy"
- ".github/workflows/build_wheels.yml"
- ".gitmodules"
- "clp_ffi_py/**"
- "MANIFEST.in"
- "pyproject.toml"
- "README.md"
- "requirements-dev.txt"
- "setup.cfg"
- "setup.py"
- "src/**"
- "tests/**"
push:
paths:
- ".clang-format"
- ".clang-tidy"
- ".github/workflows/build_wheels.yml"
- ".gitmodules"
- "clp_ffi_py/**"
- "MANIFEST.in"
- "pyproject.toml"
- "README.md"
- "requirements-dev.txt"
- "setup.cfg"
- "setup.py"
- "src/**"
- "tests/**"

concurrency:
group: "${{github.workflow}}-${{github.ref}}"
# Cancel in-progress jobs for efficiency
cancel-in-progress: true

jobs:
linters:
Expand Down

0 comments on commit dba223f

Please sign in to comment.