Skip to content

Commit

Permalink
Use Python 3.6 for reqs resolution and coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
vduseev committed Sep 1, 2023
1 parent 0db144d commit b13cc68
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b13cc68

Please sign in to comment.