Skip to content

Commit

Permalink
special mark for fdb tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mathleur authored and jameshawkes committed Jan 9, 2024
1 parent a634e1c commit 3c46c8a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
LD_LIBRARY_PATH: ${{ steps.install-dependencies.outputs.lib_path }}
shell: bash -eux {0}
run: |
DYLD_LIBRARY_PATH=${{ env.LD_LIBRARY_PATH }} python -m pytest tests --cov=./ --cov-report=xml
DYLD_LIBRARY_PATH=${{ env.LD_LIBRARY_PATH }} python -m pytest -m "not fdb" tests --cov=./ --cov-report=xml
python -m coverage report
- name: Upload coverage to Codecov
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ line-length = 120
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
markers = ["internet: downloads test data from the internet (deselect with '-m \"not internet\"')",]
markers = ["internet: downloads test data from the internet (deselect with '-m \"not internet\"')",
"fdb: test which uses fdb (deselect with '-m \"not fdb\"')",]
2 changes: 1 addition & 1 deletion tests/test_fdb_datacube.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def setup_method(self, method):
self.API = Polytope(datacube=self.fdbdatacube, engine=self.slicer, axis_options=self.options)

# Testing different shapes
@pytest.mark.skip(reason="can't install fdb branch on CI")
@pytest.mark.fdb
def test_fdb_datacube(self):
request = Request(
Select("step", [0]),
Expand Down
4 changes: 2 additions & 2 deletions tests/test_incomplete_tree_fdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def find_nearest_latlon(self, grib_file, target_lat, target_lon):
return nearest_points

@pytest.mark.internet
@pytest.mark.skip(reason="can't install fdb branch on CI")
@pytest.mark.fdb
def test_incomplete_fdb_branch(self):
request = Request(
Select("step", [0]),
Expand All @@ -72,7 +72,7 @@ def test_incomplete_fdb_branch(self):
assert result.is_root()

@pytest.mark.internet
@pytest.mark.skip(reason="can't install fdb branch on CI")
@pytest.mark.fdb
def test_incomplete_fdb_branch_2(self):
request = Request(
Select("step", [0]),
Expand Down
2 changes: 1 addition & 1 deletion tests/test_regular_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def find_nearest_latlon(self, grib_file, target_lat, target_lon):
return nearest_points

@pytest.mark.internet
@pytest.mark.skip(reason="can't install fdb branch on CI")
@pytest.mark.fdb
def test_regular_grid(self):
request = Request(
Select("step", [0]),
Expand Down
2 changes: 1 addition & 1 deletion tests/test_slice_date_range_fdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def setup_method(self, method):
self.API = Polytope(datacube=self.fdbdatacube, engine=self.slicer, axis_options=self.options)

# Testing different shapes
@pytest.mark.skip(reason="can't install fdb branch on CI")
@pytest.mark.fdb
def test_fdb_datacube(self):
request = Request(
Select("step", [0]),
Expand Down

0 comments on commit 3c46c8a

Please sign in to comment.