Skip to content

Commit

Permalink
Merge pull request #74 from mindsdb/coverage-tests
Browse files Browse the repository at this point in the history
Coverage tests
  • Loading branch information
ZoranPandovski authored Sep 21, 2023
2 parents 1aa105a + ed24f34 commit b1cb05d
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/mindsdb_python_sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.7,3.8]
python-version: [3.7,3.8,3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -39,6 +39,32 @@ jobs:
CLOUD_TEST_EMAIL: ${{ secrets.CLOUD_TEST_EMAIL }}
CLOUD_TEST_PASSWORD: ${{ secrets.CLOUD_TEST_PASSWORD }}

coverage:
needs: test
if: github.ref != 'refs/heads/stable'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest pytest-cov
pip install -r requirements.txt
- name: Build coverage file
run: |
pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=mindsdb_sdk tests/ | tee pytest-coverage.txt
- name: Pytest coverage comment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml

deploy:
runs-on: ubuntu-latest
Expand Down

2 comments on commit b1cb05d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
mindsdb_sdk
   connect.py9189%42
   databases.py39295%43, 130
   handlers.py35197%93
   jobs.py61887%28, 43–50, 92–95, 116, 121
   ml_engines.py35197%75
   models.py1812387%105–108, 193, 197–206, 274, 282, 306, 334, 461, 469, 487, 503, 530, 534
   projects.py55296%77, 157
   query.py13469%12–16
   server.py22195%49
   tables.py101793%143, 155, 171, 237–239, 267, 288
   views.py37295%105, 138
mindsdb_sdk/connectors
   rest_api.py891880%14–24, 30–31, 64–66, 83, 86, 93–96
mindsdb_sdk/utils
   objects_collection.py382339%8–13, 25–26, 29, 32–36, 39–43, 46–50, 53–57
TOTAL7359387% 

Tests Skipped Failures Errors Time
3 0 💤 0 ❌ 0 🔥 6.455s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
mindsdb_sdk
   connect.py9189%42
   databases.py39295%43, 130
   handlers.py35197%93
   jobs.py61887%28, 43–50, 92–95, 116, 121
   ml_engines.py35197%75
   models.py1812387%105–108, 193, 197–206, 274, 282, 306, 334, 461, 469, 487, 503, 530, 534
   projects.py55296%77, 157
   query.py13469%12–16
   server.py22195%49
   tables.py101793%143, 155, 171, 237–239, 267, 288
   views.py37295%105, 138
mindsdb_sdk/connectors
   rest_api.py891880%14–24, 30–31, 64–66, 83, 86, 93–96
mindsdb_sdk/utils
   objects_collection.py382339%8–13, 25–26, 29, 32–36, 39–43, 46–50, 53–57
TOTAL7359387% 

Tests Skipped Failures Errors Time
3 0 💤 0 ❌ 0 🔥 9.505s ⏱️

Please sign in to comment.