Skip to content

Commit

Permalink
docs: Updating linter workflow to generate/uploadcoverage reports (co…
Browse files Browse the repository at this point in the history
…decov)
  • Loading branch information
kiraum committed Dec 22, 2024
1 parent 6cc8c05 commit 102988a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [push]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -13,6 +14,9 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand All @@ -30,3 +34,13 @@ jobs:
- name: Run all linters and formatters
run: |
pre-commit run --all-files
- name: Run tests with coverage
run: |
pytest --cov=irrexplorer_cli --cov-branch --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: kiraum/irrexplorer-cli

0 comments on commit 102988a

Please sign in to comment.