Skip to content

Commit

Permalink
Ensure test pipeline runs on pull requests and pushes to main (#233)
Browse files Browse the repository at this point in the history
* Ensure test pipeline runs on pull requests and pushes to main

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
ssbarnea and pre-commit-ci[bot] authored Oct 16, 2024
1 parent e1676cf commit 271524a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
name: push

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main
- releases/**
- stable/**
workflow_call: # allows reuse of this workflow from other devtools repos

jobs:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
---
name: tox
on:
push:
branches: # any integration branch but not tag
- main
pull_request:
branches:
- main
jobs:
test:
# tests reusable tox workflow
Expand All @@ -27,3 +32,10 @@ jobs:
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
push:
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: ./.github/workflows/push.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 271524a

Please sign in to comment.