CI #1162
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 Flake8 | |
| run: | | |
| flake8 . | |
| - name: Run mypy | |
| run: | | |
| # run mypy but exit with 0 even if there are errors | |
| mypy . || true | |
| - name: Run Black | |
| run: | | |
| black --check . | |
| - name: Run unit tests | |
| run: pytest ./tests/ |