Skip to content

Commit aa8cd47

Browse files
Mark existing tests as broken and skip them during CI.
1 parent 3cb6226 commit aa8cd47

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
pip install '.[devel,test]'
3232
- name: Test with pytest
3333
run: |
34-
python -m pytest
34+
python -m pytest -m "not broken"
3535
- name: Upload coverage reports to Codecov with GitHub Action
3636
uses: codecov/codecov-action@v3
3737
env:

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ test = [
5252
[tool.pytest.ini_options]
5353
addopts = ["--cov=esmgrids", "--cov-report=term", "--cov-report=xml"]
5454
testpaths = ["test"]
55+
markers = ["broken"]
5556

5657
[tool.coverage.run]
5758
omit = ["esmgrids/__init__.py", "esmgrids/_version.py"]

test/test_grids.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def input_dir(self):
9191

9292
return os.path.join(self.test_data_dir, 'input')
9393

94-
@pytest.mark.accessom
94+
@pytest.mark.broken
9595
def test_convert_mom_to_cice(self, input_dir, output_dir):
9696
"""
9797
Read in a MOM grid and write out a cice grid at the same resolution.
@@ -107,6 +107,7 @@ def test_convert_mom_to_cice(self, input_dir, output_dir):
107107

108108
# FIXME actually test that the CICE grid is good.
109109

110+
@pytest.mark.broken
110111
def test_corners(self, input_dir):
111112
"""
112113
Check some corners fields, clat_t, clon_t etc.

0 commit comments

Comments
 (0)