Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore/ci: setup reviewdog #835

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,22 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Setup reviewdog
uses: reviewdog/action-setup@v1
with:
reviewdog_version: latest
- name: Install tools
run: |
pip install -U pip
pip install tox tox-gh-actions coveralls coverage[toml]
- name: Check
- name: Lint checks
run: |
tox -e check | reviewdog -f flake8 -reporter=github-pr-review -fail-level=error
tox -e mypy | reviewdog -f mypy -reporter=github-pr-review -fail-level=error
tox -e docs
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Test
run: tox
env:
PYTEST_ADDOPTS: --cov-config=pyproject.toml --cov --cov-append --verbose
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,6 @@ python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312, docs, check, mypy
3.12: py312
3.13-dev: py313
"""
Loading