CI #548
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| schedule: | |
| - cron: "0 */12 * * *" | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| cache: "pip" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install -r requirements-dev.txt | |
| - name: Run Pylint | |
| run: | | |
| pylint --ignore-paths=bt_venv --fail-on=W,E,F --exit-zero ./ | |
| - name: Run Flack8 | |
| run: | | |
| flake8 synth neurons dca alembic tests verify | |
| - name: Run mypy | |
| run: | | |
| mypy synth neurons dca alembic tests verify | |
| - name: Run Black | |
| run: | | |
| black --check . | |
| - name: Run unit tests | |
| run: pytest ./tests/ |