Skip to content

Commit

Permalink
Merge pull request #4 from AstarVienna/fh/unification
Browse files Browse the repository at this point in the history
Standardization of CI and coverage
  • Loading branch information
teutoburg committed Jan 25, 2024
2 parents 9c12d33 + 6b44db3 commit 8d89b32
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,16 @@ on:

jobs:
call-tests:
name: Call tests
name: Offline tests
uses: AstarVienna/DevOps/.github/workflows/tests.yml@poetry
secrets: inherit

call-webtests:
name: Network tests
uses: AstarVienna/DevOps/.github/workflows/webtests.yml@poetry
secrets: inherit

call-updated-tests:
name: Tests with updated dependencies
uses: AstarVienna/DevOps/.github/workflows/updated_tests.yml@poetry
secrets: inherit
1 change: 1 addition & 0 deletions hmbp/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def test_returns_correct_difference_from_vega_to_AB(self, filter_name, diff):


@pytest.mark.skip(reason="Suddenly fails. Dunno why.")
@pytest.mark.webtest
class TestInSkyCalcBackground:
# Sky mags taken from skycalc with default values from website
@pytest.mark.parametrize("filter_name, sky_mag", skycalc_bg_mags)
Expand Down
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,12 @@ pytest-cov = "^4.1.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.pytest.ini_options]
addopts = "--strict-markers"
markers = [
"webtest: marks tests as requiring network (deselect with '-m \"not webtest\"')",
]

[tool.coverage.report]
omit = ["hmbp/tests/*"]

0 comments on commit 8d89b32

Please sign in to comment.