Check for unbalancedLiquidity #33
Workflow file for this run
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: Python Check | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
checks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11.9' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install black pylint pytest | |
- name: Lint with black | |
working-directory: ./python | |
run: black --check ./src | |
- name: Lint with pylint | |
working-directory: ./python | |
run: pylint --fail-under=8.0 ./src || exit 1 | |
# The || exit 1 ensures that if pylint fails, the job fails |