https://github.com/reviewdog/action-pytest
(WIP) Run pytest with Reviewdog :dog:
https://github.com/reviewdog/action-pytest
ci github-actions github-actions-ci github-actions-docker pytest pytest-cov pytest-profiling python3 reviewdog reviewdog-action unit-testing
Last synced: about 1 month ago
JSON representation
(WIP) Run pytest with Reviewdog :dog:
- Host: GitHub
- URL: https://github.com/reviewdog/action-pytest
- Owner: reviewdog
- License: mit
- Created: 2022-02-02T12:22:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-19T15:15:12.000Z (2 months ago)
- Last Synced: 2025-04-06T03:16:42.033Z (about 2 months ago)
- Topics: ci, github-actions, github-actions-ci, github-actions-docker, pytest, pytest-cov, pytest-profiling, python3, reviewdog, reviewdog-action, unit-testing
- Language: Dockerfile
- Homepage: https://github.com/reviewdog/reviewdog
- Size: 57.6 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# action-pytest
[](https://github.com/reviewdog/action-pytest/actions?query=workflow%3ATest)
[](https://github.com/reviewdog/action-pytest/actions?query=workflow%3Areviewdog)
[](https://github.com/reviewdog/action-pytest/actions?query=workflow%3Adepup)
[](https://github.com/reviewdog/action-pytest/actions?query=workflow%3Arelease)
[](https://github.com/reviewdog/action-pytest/releases)
[](https://github.com/haya14busa/action-bumpr)## Input
```yaml
inputs:
github_token:
description: 'GITHUB_TOKEN'
default: '${{ github.token }}'
workdir:
description: 'Working directory relative to the root directory.'
default: '.'
### Flags for reviewdog ###
level:
description: 'Report level for reviewdog [info,warning,error]'
default: 'error'
reporter:
description: 'Reporter of reviewdog command [github-pr-check,github-check,github-pr-review].'
default: 'github-pr-check'
filter_mode:
description: |
Filtering mode for the reviewdog command [added,diff_context,file,nofilter].
Default is added.
default: 'added'
fail_on_error:
description: |
Exit code for reviewdog when errors are found [true,false]
Default is `false`.
default: 'false'
reviewdog_flags:
description: 'Additional reviewdog flags'
default: ''
### Flags for pytest ###
```## Usage
```yaml
name: reviewdog
on: [pull_request]
jobs:
pytest:
name: runner / pytest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- uses: reviewdog/action-pytest@v1
with:
github_token: ${{ secrets.github_token }}
# Change reviewdog reporter if you need [github-pr-check,github-check,github-pr-review].
reporter: github-pr-review
# Change reporter level if you need.
# GitHub Status Check won't become failure with warning.
level: warning
```## Development
### Release
#### [haya14busa/action-bumpr](https://github.com/haya14busa/action-bumpr)
You can bump version on merging Pull Requests with specific labels (bump:major,bump:minor,bump:patch).
Pushing tag manually by yourself also work.#### [haya14busa/action-update-semver](https://github.com/haya14busa/action-update-semver)
This action updates major/minor release tags on a tag push. e.g. Update v1 and v1.2 tag when released v1.2.3.
ref: https://help.github.com/en/articles/about-actions#versioning-your-action### Lint - reviewdog integration
This reviewdog action is integrated with reviewdog to run lints
which is useful for Docker container based actions.
Supported linters:
- [reviewdog/action-shellcheck](https://github.com/reviewdog/action-shellcheck)
- [reviewdog/action-hadolint](https://github.com/reviewdog/action-hadolint)
- [reviewdog/action-misspell](https://github.com/reviewdog/action-misspell)### Dependencies Update Automation
This repository uses [reviewdog/action-depup](https://github.com/reviewdog/action-depup) to update
reviewdog version.[](https://github.com/reviewdog/action-pytest/pull/6)