Skip to content

Commit

Permalink
Run tests only on PR open, review requests (#159)
Browse files Browse the repository at this point in the history
* run tests only on PR open, review requests

* added some extra instructions in docs

* reorder on setting

* line break

* reset what is written in docs
  • Loading branch information
itrharrison authored Nov 15, 2023
1 parent 2d0211f commit e9e7abd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Testing

on: [push, pull_request]
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
Expand Down
3 changes: 2 additions & 1 deletion soliket/bandpass.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ def _bandpass_construction(self, **params):
)
if self.bandint_nsteps > 1 and np.any(np.array(self.bandint_width) == 0):
raise LoggedError(
self.log, "One band has width = 0, set a positive width and run again"
self.log, "One band has width = 0, \
set a positive width and run again"
)
# Compute central frequency given bandpass
fr = nu_ghz @ bp / bp.sum()
Expand Down

0 comments on commit e9e7abd

Please sign in to comment.