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:
|
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 }}
|
|
||||||
|
|||||||
15
.github/workflows/run-linter.yml
vendored
15
.github/workflows/run-linter.yml
vendored
@@ -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
|
||||||
|
|||||||
@@ -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