Skip to content

Commit

Permalink
Merge pull request #9 from lincc-frameworks/test-workflow-chain
Browse files Browse the repository at this point in the history
Test pre-commit chain
  • Loading branch information
camposandro authored Sep 7, 2023
2 parents e89771f + 3753ba0 commit 8ff9456
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 23 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/asv-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@

name: Run ASV benchmarks for PR

# Run after pre-commit hooks is completed
on:
workflow_run:
workflows: [Run pre-commit hooks]
types: [completed]
pull_request:
branches: [ main ]

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

env:
PYTHON_VERSION: "3.10"
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

name: Build documentation

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

# on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@

name: Lint

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

# on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/pre-commit-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ name: Run pre-commit hooks

on:
pull_request:
branches: [ main ]

jobs:
pre-commit-ci:
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/testing-and-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@

name: Unit test and code coverage

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

# on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
Expand Down

0 comments on commit 8ff9456

Please sign in to comment.