Skip to content

Commit

Permalink
Flush live display
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanderleek committed Aug 10, 2024
1 parent ab43a4c commit ba7beff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ jobs:
run: poetry install --no-interaction --no-root
- name: 'Run unit-tests with coverage'
run: poetry run pytest --cov --cov-report=xml
- name: 'Run codelimit'
run: |
poetry run codelimit scan codelimit/
- name: 'Build and run codelimit binary'
run: |
poetry run pyinstaller -n codelimit -F codelimit/__main__.py
./dist/codelimit scan codelimit/
- name: 'Run Code Limit'
- name: 'Run Code Limit action'
uses: getcodelimit/codelimit-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions codelimit/common/Scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def add_file_entry(entry: SourceFileEntry):
live.update(table)

_scan_folder(codebase, path, cached_report, add_file_entry)
live.stop()
if len(scan_totals.languages()) > 1:
print_totals(scan_totals)
print_refactor_candidates(scan_totals)
Expand Down

0 comments on commit ba7beff

Please sign in to comment.