Update package_quality.yml #4
This file contains 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: Package quality | |
on: [ push, pull_request ] | |
jobs: | |
ruff: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: chartboost/ruff-action@v1 | |
with: | |
args: 'format --check' | |
#type-completeness: | |
#runs-on: ubuntu-latest | |
#steps: | |
#- uses: Bibo-Joshi/[email protected] | |
#with: | |
#package-name: 'temporal-adjuster' | |
#python-version: '3.12' | |
#pyright-version: '~=1.1.160' | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: 3.12 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install coverage | |
pip install -r requirements_dev.txt | |
- name: Check coverage threshold | |
run: | | |
coverage run -m unittest discover tests/ -v | |
coverage report --fail-under=95 | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Check for dead code | |
uses: gtkacz/[email protected] | |
with: | |
args: '--min-confidence 70 --exclude "*/docs/*,setup.py"' |