Skip to content

Commit

Permalink
Merge pull request #233 from halomod/dependabot/github_actions/codeco…
Browse files Browse the repository at this point in the history
…v/codecov-action-5

chore(deps): bump codecov/codecov-action from 4 to 5
  • Loading branch information
steven-murray authored Dec 3, 2024
2 parents 038f8c5 + 3289050 commit 5070f72
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Run Tests
run: |
python -m pytest --cov=hmf --cov-config=.coveragerc --cov-report xml:./coverage.xml --durations=25
- uses: codecov/codecov-action@v4
- uses: codecov/codecov-action@v5
if: matrix.os == 'ubuntu-latest' && success() && !contains(github.event.pull_request.labels.*.name, 'auto-pr')
with:
file: ./coverage.xml # optional
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/warnings-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Run Tests
run: |
python -m pytest -Werror --cov=hmf --cov-config=.coveragerc --cov-report xml:./coverage.xml --durations=25
- uses: codecov/codecov-action@v4
- uses: codecov/codecov-action@v5
if: matrix.os == 'ubuntu-latest' && success()
with:
file: ./coverage.xml # optional
Expand Down
2 changes: 1 addition & 1 deletion src/hmf/density_field/transfer_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def __init__(self, *args, **kwargs):
if self.params["kmax"]:
self.params["camb_params"].Transfer.kmax = self.params["kmax"]

if self.cosmo.Ob0 is None:
if self.cosmo.Ob0 is None or self.cosmo.Ob0 == 0.0:
raise ValueError(
"To use CAMB, you must set the baryon density in the cosmology "
"explicitly."
Expand Down

0 comments on commit 5070f72

Please sign in to comment.