Skip to content

Commit

Permalink
debugging workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianGroeger96 committed Feb 14, 2024
1 parent d2eccfb commit 063423d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/pytest-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ jobs:
steps:
- uses: actions/checkout@v4 # without submodules

- name: disable the keychain credential helper
- name: Disable the keychain credential helper
run: git config --global credential.helper ""

- name: enable the local store credential helper
- name: Enable the local store credential helper
run: git config --global --add credential.helper store

- name: add credential
- name: Add credential
run: echo "https://x-access-token:${{ secrets.SUBMODULE_GITHUB_TOKEN }}@github.com" >> ~/.git-credentials

- name: tell git to use https instead of ssh whenever it encounters it
- name: Tell git to use https instead of ssh whenever it encounters it
run: 'git config --global url."https://github.com/".insteadof git@github.com:'

- name: Git submodule initialization
Expand Down Expand Up @@ -49,11 +49,8 @@ jobs:
run: |
python3 -m coverage run -m pytest tests --junitxml=report.xml; coverage report -i --include=src/*; coverage xml -i --include=src/*;
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }} # Not required for public repos
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
env:
token: ${{ secrets.CODECOV_TOKEN }}
slug: Digital-Dermatology/SelfClean
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ def test_exact_duplicate_with_diff_label(self):
cleaner.fit(emb_space=emb_space, labels=labels)
out_dict = cleaner.predict()

self.assertTrue(
(out_dict["label_errors"]["indices"][:2] == [0, len(emb_space) - 1]).all()
np.testing.assert_array_equal(
np.sort(out_dict["label_errors"]["indices"][:2]),
np.sort(np.asarray([0, len(emb_space) - 1])),
)
self.assertAlmostEqual(out_dict["label_errors"]["scores"][0], 0)

Expand Down

0 comments on commit 063423d

Please sign in to comment.