From 0f7e6ad475a038008b1dbe566614d7dcac9fa562 Mon Sep 17 00:00:00 2001 From: KerstenBreuer Date: Sat, 7 Oct 2023 12:37:40 +0000 Subject: [PATCH] update template --- .deprecated_files | 1 + .../{unit_and_int_tests.yaml => tests.yaml} | 14 ++++++++------ .static_files | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) rename .github/workflows/{unit_and_int_tests.yaml => tests.yaml} (71%) diff --git a/.deprecated_files b/.deprecated_files index 2ac2e3e1..ca3684e0 100644 --- a/.deprecated_files +++ b/.deprecated_files @@ -9,6 +9,7 @@ .github/workflows/check_mandatory_and_static_files.yaml .github/workflows/dev_cd.yaml +.github/workflows/unit_and_int_tests.yaml scripts/check_mandatory_and_static_files.py scripts/update_static_files.py diff --git a/.github/workflows/unit_and_int_tests.yaml b/.github/workflows/tests.yaml similarity index 71% rename from .github/workflows/unit_and_int_tests.yaml rename to .github/workflows/tests.yaml index 92127f34..05f474ca 100644 --- a/.github/workflows/unit_and_int_tests.yaml +++ b/.github/workflows/tests.yaml @@ -1,11 +1,11 @@ -name: Unit and Integration Tests +name: Tests on: push jobs: - unit_and_int_tests: + tests: runs-on: ubuntu-latest - name: Unit and Integration Tests + name: Tests steps: - uses: actions/checkout@v3 @@ -13,12 +13,14 @@ jobs: - id: common uses: ghga-de/gh-action-common@v3 - - name: Run pytest + - id: pytest run: | export ${{ steps.common.outputs.CONFIG_YAML_ENV_VAR_NAME }}="${{ steps.common.outputs.CONFIG_YAML }}" + pytest \ - --cov="${{ steps.common.outputs.MAIN_SRC_DIR }}" \ - --cov-report=xml + --cov="${{ steps.common.outputs.PACKAGE_NAME }}" \ + --cov-report=xml \ + tests - id: coveralls name: Upload coverage to coveralls diff --git a/.static_files b/.static_files index d8a011c5..da8e08f0 100644 --- a/.static_files +++ b/.static_files @@ -31,7 +31,7 @@ scripts/README.md .github/workflows/check_config_docs.yaml .github/workflows/check_template_files.yaml .github/workflows/static_code_analysis.yaml -.github/workflows/unit_and_int_tests.yaml +.github/workflows/tests.yaml .github/workflows/check_openapi_spec.yaml .github/workflows/check_readme.yaml .github/workflows/cd.yaml