mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-16 20:27:05 +03:00
chore(ci): remove reviewdog and streamline linter workflows
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
13
.github/workflows/check.yml
vendored
13
.github/workflows/check.yml
vendored
@@ -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 }}
|
||||
|
||||
15
.github/workflows/run-linter.yml
vendored
15
.github/workflows/run-linter.yml
vendored
@@ -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=check,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
|
||||
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user