Skip to content

Commit

Permalink
more formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cpelley committed Jul 12, 2024
1 parent 709deda commit 2beb0b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ jobs:
pip uninstall dagrunner -y
# TESTS (inc. test coverage)

# excluded logging as per https://github.com/MetOffice/dagrunner/issues/39
- name: Run pytest + coverage report gen
run: pytest --cov=dagrunner --cov-report=term --cov-report=html --ignore=dagrunner/tests/utils/logging/test_integration.py | tee coverage_output.txt; test ${PIPESTATUS[0]} -eq 0


# TESTS (main branch)

- name: Cache ref branch coverage report
id: cache-ref-coverage
uses: actions/cache@v4
Expand All @@ -68,6 +70,7 @@ jobs:
pytest --cov=dagrunner --cov-report=term | tee coverage_output.txt
# TESTS (compare coverage)

- name: Compare coverage
id: comp-coverage
run: |
Expand Down Expand Up @@ -139,6 +142,9 @@ jobs:
echo "changed=$(git diff --quiet --exit-code || echo true)" | tee -a $GITHUB_OUTPUT
# https://github.com/orgs/community/discussions/26560#discussioncomment-3531273
# This must be our very final step to ensure that it runs only on condition of
# success of all previous steps. A pushed commit will not trigger the re-running
# of this workflow.
- name: Commit and push documentation changes
if: steps.check-docs.outputs.changed == 'true'
run: |
Expand Down
2 changes: 1 addition & 1 deletion dagrunner/tests/utils/test_function_to_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def test_kwargs_param_expand():
options:
-h, --help show this help message and exit
--kwargs key value Optional global keyword arguments to apply to all applicable plugins. Key-value pair argument.
"""
""" # noqa: E501
assert_help_str(help_str, tar)

args = parser.parse_args(["--kwargs", "key1", "val1", "--kwargs", "key2", "val2"])
Expand Down

0 comments on commit 2beb0b2

Please sign in to comment.