From 0fb5fa1f21184cd54590520ab18ecb56dbc76136 Mon Sep 17 00:00:00 2001 From: VKTB <45173816+VKTB@users.noreply.github.com> Date: Tue, 12 Nov 2024 18:08:14 +0000 Subject: [PATCH] Get coverage.xml report from container #133 --- .github/workflows/ci-build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index c91bed8..c1d6459 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -22,7 +22,8 @@ jobs: - name: Run tests run: | docker build -f Dockerfile -t scigateway-auth:test --target test . - docker run --name scigatewau-auth-container scigateway-auth:test pytest --config-file test/pytest.ini --cov scigateway_auth --cov-report xml + docker run --name scigateway-auth-container scigateway-auth:test pytest --config-file test/pytest.ini --cov scigateway_auth --cov-report xml + docker cp scigateway-auth-container:/app/coverage.xml coverage.xml - name: Upload code coverage report uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4