blender rollout; changed configs a bit #149
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: Run linter checks | |
on: | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
run_linters_tests: | |
name: Run linters and tests | |
runs-on: ubuntu-latest | |
container: python:3.10.7 | |
services: | |
postgres: | |
image: postgres:16.1 | |
env: | |
POSTGRES_PASSWORD: app | |
POSTGRES_USER: app | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
pip install -r requirements/dev.txt | |
continue-on-error: true | |
- name: Lint with ruff | |
run: | | |
ruff src | |
- name: Format with ruff | |
run: | | |
ruff format src --diff | |
# - name: Lint with mypy | |
# run: | | |
# mypy src tests | |
- name: Run tests | |
run: | | |
pytest |