From b13cc6827b2b0174b935c87e35203c6354815015 Mon Sep 17 00:00:00 2001 From: vduseev Date: Fri, 1 Sep 2023 16:32:54 +0200 Subject: [PATCH] Use Python 3.6 for reqs resolution and coverage --- .github/workflows/test.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2775d37..a455999 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.6" - name: Install pip-tools run: pip install pip-tools @@ -93,14 +93,20 @@ jobs: - name: Run tests env: TEST_OPENSEARCH_HOST: "https://localhost:9200" - run: python -m pytest -x --cov --cov-report=xml --cov-config=pyproject.toml + run: python -m pytest -x + + - name: Run test coverage + env: + TEST_OPENSEARCH_HOST: "https://localhost:9200" + run: python -m pytest --cov --cov-report=xml --cov-config=pyproject.toml + if: matrix.python-version == '3.6' - name: Save coverage results artifact uses: actions/upload-artifact@v3 with: name: coverage path: coverage.xml - if: matrix.python-version == '3.11' + if: matrix.python-version == '3.6' measure-coverage: name: Report coverage