Skip to content

Commit

Permalink
fix intentional failure; add slack integration for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pleary committed Nov 20, 2023
1 parent 7839536 commit b26fc83
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,15 @@ jobs:
- name: Test with pytest
run: |
coverage run -m pytest -s && coverage report --show-missing
notify:
name: Notify Slack
needs: build
if: ${{ success() || failure() }}
runs-on: ubuntu-20.04
steps:
- uses: iRoachie/[email protected]
if: env.SLACK_WEBHOOK_URL != null
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_BUILDS_WEBHOOK_URL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion tests/test_model_taxonomy_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_loading_mapping(self, taxon):
@pytest.mark.parametrize("taxon", ["Aramus guarauna"], indirect=True)
def test_nested_set_assigning(self, taxon):
assert taxon["left"] == 7
assert taxon["right"] == 9
assert taxon["right"] == 8

@pytest.mark.parametrize("taxon", ["Aramus guarauna"], indirect=True)
def test_geo_threshold_assigning(self, taxon):
Expand Down

0 comments on commit b26fc83

Please sign in to comment.