Skip to content

Commit

Permalink
#340 - add codecov action
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamforka committed Sep 25, 2024
1 parent d48c9e0 commit 32f8635
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/_integration-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: integration-tests
on:
workflow_call:
secrets:
CODECOV_TOKEN:
required: true
jobs:
integration-tests:
name: Run integration tests
Expand All @@ -15,3 +18,7 @@ jobs:
run: pip install --no-cache-dir -U pip .['test']
- name: Run integration tests
run: scripts/ci.py --test
- name: Upload coverage results
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/main-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
uses: ./.github/workflows/_static-checks.yml
integration-tests:
uses: ./.github/workflows/_integration-tests.yml
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
build-package:
uses: ./.github/workflows/_build-package.yml
upload-package:
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
@pytest.fixture(scope="session")
def test_config():
return TestConfig(
image_name="strangebee/thehive:5.3.4",
image_name="strangebee/thehive:5.3.6",
container_name="thehive4py-integration-tester",
user="[email protected]",
password="secret",
Expand Down

0 comments on commit 32f8635

Please sign in to comment.