Skip to content

Commit

Permalink
Merge pull request #53 from greglucas/ci-workflows
Browse files Browse the repository at this point in the history
CI: Update workflow concurrency
  • Loading branch information
greglucas authored Jul 2, 2024
2 parents 910a1d9 + 5e6e18c commit d30ab27
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: tests
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
cancel-in-progress: true

on:
push:
branches: [ 'main' ]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
cancel-in-progress: true

jobs:
linting:
runs-on: ubuntu-latest
Expand All @@ -27,7 +28,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019, ubuntu-latest, macos-latest, macos-14]
os: [windows-latest, ubuntu-latest, macos-latest, macos-14]
python-version: ['3.10', '3.11', '3.12']
defaults:
run:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Build wheels
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
cancel-in-progress: true

# Only build on tagged releases
on:
release:
types: [published]
# Also allow running this action on PRs if requested by applying the
# "Run cibuildwheel" label.
pull_request:
Expand All @@ -15,6 +13,10 @@ on:
- reopened
- labeled

concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event_name }}-${{ github.event.ref }}
cancel-in-progress: true

jobs:
build_wheels:
if: |
Expand Down

0 comments on commit d30ab27

Please sign in to comment.