mirror of https://github.com/lukechilds/lnbits.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
799 B
33 lines
799 B
name: Linters
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
black:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: sudo apt-get install python3-venv
|
|
- run: python3 -m venv venv
|
|
- run: ./venv/bin/pip install black
|
|
- run: make checkblack
|
|
prettier:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: npm install
|
|
- run: make checkprettier
|
|
mypy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: sudo apt-get install python3-venv
|
|
- run: sudo apt-get install libev-dev
|
|
- run: python3 -m venv venv
|
|
- run: ./venv/bin/pip install -r requirements.txt
|
|
- run: ./venv/bin/pip install mypy
|
|
- run: make mypy
|
|
|