modify workflows to fit into one file, fix pyright workflow
This commit is contained in:
parent
b810848273
commit
99285baf1a
25
.github/workflows/black.yml
vendored
25
.github/workflows/black.yml
vendored
@ -1,25 +0,0 @@
|
|||||||
name: Lint
|
|
||||||
|
|
||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
lint:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Setup Python
|
|
||||||
uses: actions/setup-python@v1
|
|
||||||
with:
|
|
||||||
python-version: 3.8
|
|
||||||
|
|
||||||
- name: install black
|
|
||||||
run: pip install black
|
|
||||||
|
|
||||||
- name: run linter
|
|
||||||
uses: wearerequired/lint-action@v1
|
|
||||||
with:
|
|
||||||
black: true
|
|
||||||
black_args: ". --line-length 120"
|
|
||||||
auto_fix: true
|
|
23
.github/workflows/ci.yml
vendored
23
.github/workflows/ci.yml
vendored
@ -3,7 +3,7 @@ name: CI
|
|||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
pyright:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
@ -23,4 +23,25 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
npm install -g pyright
|
npm install -g pyright
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
pip install .
|
||||||
pyright --lib --verifytypes discord --ignoreexternal
|
pyright --lib --verifytypes discord --ignoreexternal
|
||||||
|
|
||||||
|
black:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: 3.8
|
||||||
|
|
||||||
|
- name: install black
|
||||||
|
run: pip install black
|
||||||
|
|
||||||
|
- name: run linter
|
||||||
|
uses: wearerequired/lint-action@v1
|
||||||
|
with:
|
||||||
|
black: true
|
||||||
|
black_args: ". --line-length 120"
|
Loading…
x
Reference in New Issue
Block a user