diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dda27a8..e2b1e49 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 }} diff --git a/.github/workflows/warnings-tests.yml b/.github/workflows/warnings-tests.yml new file mode 100644 index 0000000..80205bb --- /dev/null +++ b/.github/workflows/warnings-tests.yml @@ -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 diff --git a/aipy/healpix.py b/aipy/healpix.py index f0985e5..9bb8c50 100644 --- a/aipy/healpix.py +++ b/aipy/healpix.py @@ -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.