Merge pull request #55 from Cosmo-Tech/use_template_PROD-14419 #15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Untested Functions | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
check-untested-functions: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e ".[test]" | |
- name: Run untested functions check | |
run: | | |
python find_untested_functions.py | |
# This is informational only for now, will not fail the build | |
# In the future, we can make this fail the build by adding: | |
# exit $(python find_untested_functions.py | grep "Total untested functions:" | awk '{print $4}') |