Skip to content

Commit

Permalink
add github workflow trigger on pull request (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
patricefortin authored Oct 1, 2024
1 parent 9f4769a commit 9cce6b1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: CI

on: [push]
on: [push, workflow_call]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -26,4 +25,4 @@ jobs:
poetry install -q
- name: Test with pytest
run: |
poetry run pytest tests/
poetry run pytest tests/
10 changes: 10 additions & 0 deletions .github/workflows/Build_on_pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: On Pull Request

on:
pull_request:
branches: [master, fNIRS]

jobs:
build:
name: Build and Test
uses: ./.github/workflows/Build.yml

0 comments on commit 9cce6b1

Please sign in to comment.