Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 months 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 (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-03T09:08:09.000Z (4 months ago)
- Last Synced: 2024-09-30T23:41:50.568Z (3 months ago)
- Topics: ci, github-actions, github-actions-ci, github-actions-docker, pytest, pytest-cov, pytest-profiling, python3, reviewdog, reviewdog-action, unit-testing
- Language: Shell
- Homepage: https://github.com/reviewdog/reviewdog
- Size: 31.3 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# action-pytest
[![Test](https://github.com/reviewdog/action-pytest/workflows/Test/badge.svg)](https://github.com/reviewdog/action-pytest/actions?query=workflow%3ATest)
[![reviewdog](https://github.com/reviewdog/action-pytest/workflows/reviewdog/badge.svg)](https://github.com/reviewdog/action-pytest/actions?query=workflow%3Areviewdog)
[![depup](https://github.com/reviewdog/action-pytest/workflows/depup/badge.svg)](https://github.com/reviewdog/action-pytest/actions?query=workflow%3Adepup)
[![release](https://github.com/reviewdog/action-pytest/workflows/release/badge.svg)](https://github.com/reviewdog/action-pytest/actions?query=workflow%3Arelease)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/reviewdog/action-pytest?logo=github&sort=semver)](https://github.com/reviewdog/action-pytest/releases)
[![action-bumpr supported](https://img.shields.io/badge/bumpr-supported-ff69b4?logo=github&link=https://github.com/haya14busa/action-bumpr)](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@v2
- 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.![reviewdog integration](https://user-images.githubusercontent.com/3797062/72735107-7fbb9600-3bde-11ea-8087-12af76e7ee6f.png)
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.[![reviewdog depup demo](https://user-images.githubusercontent.com/3797062/73154254-170e7500-411a-11ea-8211-912e9de7c936.png)](https://github.com/reviewdog/action-pytest/pull/6)