Merge pull request #961 from miurahr/topic/miurahr/ci/improve-ci-stylechecks

fix(linter): correct ci runner configuration
This commit is contained in:
Hiroshi Miura
2025-12-14 11:51:07 +09:00
committed by GitHub
3 changed files with 5 additions and 42 deletions

View File

@@ -14,7 +14,7 @@ on:
jobs:
check_document:
name: Check packaging 📦
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
env:
AQT_TEST_EMAIL: ${{ secrets.AQT_TEST_EMAIL }}
AQT_TEST_PASSWORD: ${{ secrets.AQT_TEST_PASSWORD }}
@@ -41,14 +41,3 @@ jobs:
run: coveralls --service=github
env:
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:
linter:
name: Linter
runs-on: ubuntu-24.04
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup python
@@ -22,21 +20,16 @@ jobs:
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
- name: lint check
run: |
reviewdog -runners=flake8,mypy -reporter=github-pr-review -conf=.reviewdog.yml
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tox -e check
docs:
name: Document checks
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- 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"