mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-16 20:27:05 +03:00
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
name: Run linter
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
|
|
jobs:
|
|
linter:
|
|
name: Linter
|
|
runs-on: ubuntu-24.04
|
|
permissions:
|
|
pull-requests: write
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: Setup python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.13'
|
|
architecture: x64
|
|
- name: Setup reviewdog
|
|
uses: reviewdog/action-setup@d8a7baabd7f3e8544ee4dbde3ee41d0011c3a93f # v1.5.0
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install -U pip tox wheel setuptools coveralls coverage[toml]
|
|
pip install .[check]
|
|
- name: run reviewdog
|
|
run: |
|
|
reviewdog -runners=check,mypy -reporter=github-pr-review -conf=.reviewdog.yml
|
|
env:
|
|
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
docs:
|
|
name: Document checks
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: Setup python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.13'
|
|
architecture: x64
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install -U pip tox wheel setuptools setuptools_scm[toml]
|
|
- name: docs build and link check
|
|
run: |
|
|
tox -e docs
|