chore(ci): remove reviewdog and streamline linter workflows

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
Hiroshi Miura
2025-12-14 11:47:55 +09:00
parent 04772e0043
commit f904a0d231
3 changed files with 5 additions and 42 deletions

View File

@@ -14,7 +14,7 @@ on:
jobs: jobs:
check_document: check_document:
name: Check packaging 📦 name: Check packaging 📦
runs-on: ubuntu-22.04 runs-on: ubuntu-latest
env: env:
AQT_TEST_EMAIL: ${{ secrets.AQT_TEST_EMAIL }} AQT_TEST_EMAIL: ${{ secrets.AQT_TEST_EMAIL }}
AQT_TEST_PASSWORD: ${{ secrets.AQT_TEST_PASSWORD }} AQT_TEST_PASSWORD: ${{ secrets.AQT_TEST_PASSWORD }}
@@ -41,14 +41,3 @@ jobs:
run: coveralls --service=github run: coveralls --service=github
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-java@v5
if: ( github.event_name == 'push' ) && ( github.ref == 'refs/heads/master' )
with:
distribution: 'temurin'
java-version: '21'
- name: Send coverage to codacy
if: ( github.event_name == 'push' ) && ( github.ref == 'refs/heads/master' )
run: |
java -jar ci/codacy-coverage-reporter.jar report -l Python -t ${PROJECT_TOKEN} -r cobertura.xml
env:
PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}

View File

@@ -12,9 +12,7 @@ on:
jobs: jobs:
linter: linter:
name: Linter name: Linter
runs-on: ubuntu-24.04 runs-on: ubuntu-latest
permissions:
pull-requests: write
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
- name: Setup python - name: Setup python
@@ -22,21 +20,16 @@ jobs:
with: with:
python-version: '3.13' python-version: '3.13'
architecture: x64 architecture: x64
- name: Setup reviewdog
uses: reviewdog/action-setup@d8a7baabd7f3e8544ee4dbde3ee41d0011c3a93f # v1.5.0
- name: Install dependencies - name: Install dependencies
run: | run: |
pip install -U pip tox wheel setuptools coveralls coverage[toml] pip install -U pip tox wheel setuptools coveralls coverage[toml]
pip install .[check] - name: lint check
- name: run reviewdog
run: | run: |
reviewdog -runners=check,mypy -reporter=github-pr-review -conf=.reviewdog.yml tox -e check
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docs: docs:
name: Document checks name: Document checks
runs-on: ubuntu-22.04 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
- name: Setup python - name: Setup python

View File

@@ -1,19 +0,0 @@
runner:
flake8:
name: flake8
cmd: flake8 aqt tests
format: flake8
level: error
mypy:
name: mypy
cmd: mypy --strict --show-column-numbers -p aqt
errorformat:
- "%f:%l:%c: %m"
level: error
pylint:
name: pylint
cmd: pylint **/*.py -j 0
errorformat:
- "%f:%l:%c: %t%n: %m"