Skip to content

Commit

Permalink
configure integration test coverage xml and change names
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfromearth committed May 15, 2024
1 parent 048bed5 commit 2326fb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ env:
PYTHON_VERSION: "3.10"

jobs:
run-integration-test:
integration-tests:
runs-on: ubuntu-latest

steps:
Expand All @@ -54,7 +54,7 @@ jobs:
EDL_PASSWORD: ${{ secrets.DEK_EDL_PASSWORD }}
run: |
scripts/create-netrc
poetry run pytest --cov=concatenator --cov-report=term-missing --log-cli-level=INFO tests/integration
poetry run pytest --cov=concatenator --cov-report=xml tests/integration
- name: Upload coverage
uses: codecov/codecov-action@v4
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# A reusable workflow to build and run the unit test suite
#
# This workflow will install Python dependencies, run tests,
# and report test results and code coverage as artifacts. It will
# be called by the workflow that run tests against new PRs and as
# a first step in the workflow that publishes new Docker images.

name: A reusable workflow to build and run the unit test suite
name: Unit Tests

on:
workflow_call:
Expand All @@ -17,7 +18,7 @@ env:
PYTHON_VERSION: "3.10"

jobs:
build_and_test:
unit-tests:
runs-on: ubuntu-latest

steps:
Expand All @@ -42,7 +43,7 @@ jobs:
poetry run ruff check concatenator
- name: Run tests and collect coverage
run: poetry run pytest --cov=concatenator tests/unit --cov-report=xml
run: poetry run pytest --cov=concatenator --cov-report=xml tests/unit

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
Expand Down

0 comments on commit 2326fb3

Please sign in to comment.