diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 728181e..722c9db 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -4,6 +4,7 @@ on: [push] permissions: contents: read + jobs: build: runs-on: ubuntu-latest @@ -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: @@ -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