Skip to content

Commit

Permalink
ci: add warnings test
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed Jun 29, 2024
1 parent a9ac42a commit 18fbc9a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10"]
python-version: [3.9, "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up ${{ matrix.python-version }}
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/warnings-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Run Warnings Tests

on: [push]

jobs:
Tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
pip install -e .[dev]
- name: Test with pytest
run: pytest -Werror --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
flags: unittests
fail_ci_if_error: true
verbose: true
3 changes: 2 additions & 1 deletion aipy/healpix.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ def to_map(self, nside, pixwin=False, fwhm=0.0, sigma=None,
polarized input)'''
return healpy.alm2map(self.get_data(), nside,
lmax=self._lmax, mmax=self._mmax,
pixwin=pixwin, fwhm=fwhm, sigma=sigma, pol=pol, verbose=verbose)
pixwin=pixwin, fwhm=fwhm, sigma=sigma, pol=pol
)
def from_map(self, data, iter=3, pol=True, use_weights=False, gal_cut=0):
'''Set the coefficients of this Alm object (with its specified
lmax and mmax) from the data of a HealpixMap in 'RING' mode.
Expand Down

0 comments on commit 18fbc9a

Please sign in to comment.