Skip to content

Commit 7f114ba

Browse files
authored
ci: use new pixi coverage task (#171)
* chore: simplify build to use `matplotlib-base`
1 parent bddac19 commit 7f114ba

File tree

6 files changed

+20
-695
lines changed

6 files changed

+20
-695
lines changed

.github/workflows/python-request.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,10 @@ jobs:
4242
- name: Test with pytest
4343
run: |
4444
# install the package in editable mode
45-
pip install --no-deps --editable .
46-
pixi run --environment dev pytest -n 0 --cov=./ --cov-report=xml \
47-
--username=${{ secrets.EARTHDATA_USERNAME }} \
48-
--password=${{ secrets.EARTHDATA_PASSWORD }}
45+
pixi run coverage "--username=${{ secrets.EARTHDATA_USERNAME }} --password=${{ secrets.EARTHDATA_PASSWORD }}"
4946
- name: Archive code coverage results
5047
uses: actions/upload-artifact@v4
5148
with:
5249
name: code-coverage-report-${{ matrix.os }}
53-
path: ./coverage.xml
50+
path: coverage.xml
51+

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ wheels/
4141
.installed.cfg
4242
*.egg
4343
.pytest_cache
44+
pytest.xml
4445
.coverage
46+
coverage.xml
4547
pythonenv*/
4648
venv/
4749
*build-commands.txt

gravity_toolkit/sea_level_equation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def sea_level_equation(loadClm, loadSlm, glon, glat, land_function, LMAX=0,
133133
LOVE=None, BODY_TIDE_LOVE=0, FLUID_LOVE=0, DENSITY=1.0, POLAR=True,
134134
ITERATIONS=6, PLM=None, FILL_VALUE=0, ASTYPE=np.longdouble, SCALE=1e-280,
135135
**kwargs):
136-
"""
136+
r"""
137137
Solves the sea level equation with the option of including
138138
polar motion feedback :cite:p:`Farrell:1976hm,Kendall:2005ds,Mitrovica:2003cq`
139139

0 commit comments

Comments
 (0)