Skip to content

Commit

Permalink
Update and rename ruff.yml to package_quality.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gtkacz authored Sep 12, 2024
1 parent 30c0dc6 commit be45e47
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 10 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/package_quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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/setup-python@v3
with:
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install coverage
- name: Check coverage threshold
run: |
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"'
10 changes: 0 additions & 10 deletions .github/workflows/ruff.yml

This file was deleted.

0 comments on commit be45e47

Please sign in to comment.