🔧 update eslint #81
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Froide CI | |
on: | |
push: | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
cache: 'pnpm' | |
- uses: actions/cache@v1 | |
with: | |
key: v0-${{ runner.os }}-pip-lint-${{ hashFiles('setup.py') }} | |
path: ~/.cache/pip | |
restore-keys: | | |
v0-${{ runner.os }}-pip-lint- | |
v0-${{ runner.os }}-pip- | |
- name: Install dependencies # TODO: move to requirements.txt | |
run: | | |
pip install flake8 black isort | |
pnpm install | |
- name: Run flake8 | |
run: flake8 froide_campaign --statistics | |
- name: Run black | |
run: black --check froide_campaign | |
- name: Run isort | |
run: isort --check froide_campaign | |
- name: Run eslint | |
run: pnpm lint |