You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using the pytest-cov within our project in our GitHub workflow to check that our tests cover at least 90% of our code, and I noticed that for some reason this workflow takes the longest to complete, and sometimes takes over an hour to finish. I am not sure if this is something I am doing wrong, the package is slow, or GitHub workflow is just slow. Our project does have over 150 tests as well, not sure if that is an issue or not. When running the package locally it is pretty fast. Please let me know your thoughts when possible, I am trying to optimize the GitHub workflow.
# use pytest-cov to see what percentage of the code is being covered by tests# WARNING: this workflow will fail if any of the tests within it failname: Test Coverageon:
push:
branches:
- main
- developpull_request:
branches:
- main
- developjobs:
test-coverage:
runs-on: ubuntu-lateststrategy:
matrix:
os: [ubuntu-latest]python-version: [3.11]steps:
- uses: actions/checkout@v2
- name: Setup Pythonuses: actions/setup-python@v2with:
python-version: 3.11
- name: upgrade piprun: pip install --upgrade pip
- name: Install CRIPT Python SDKrun: pip install -e .
- name: Install requirements_dev.txtrun: pip install -r requirements_dev.txt
- name: Test Coveragerun: pytest --cov --cov-fail-under=90
The text was updated successfully, but these errors were encountered:
Description
We are using the pytest-cov within our project in our GitHub workflow to check that our tests cover at least 90% of our code, and I noticed that for some reason this workflow takes the longest to complete, and sometimes takes over an hour to finish. I am not sure if this is something I am doing wrong, the package is slow, or GitHub workflow is just slow. Our project does have over 150 tests as well, not sure if that is an issue or not. When running the package locally it is pretty fast. Please let me know your thoughts when possible, I am trying to optimize the GitHub workflow.
The text was updated successfully, but these errors were encountered: