Setup python and make
Some checks failed
Run checks / checks (pull_request) Failing after 8s

This commit is contained in:
Bart van der Braak 2024-11-19 20:04:36 +01:00
parent da6339d74d
commit 135cfccd41
4 changed files with 18 additions and 12 deletions

View file

@ -1,5 +1,8 @@
name: Run checks
on: [ push, pull_request ]
on:
pull_request:
branches:
- main
jobs:
checks:
runs-on: docker
@ -7,8 +10,8 @@ jobs:
DIRECTORY: config
steps:
- uses: actions/checkout@v4
- run: cd ${{ env.DIRECTORY }}
- run: pip install -r requirements-dev.txt
- run: ruff check
- run: ruff format
- run: myp
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- run: pip install -r requirements.txt
- run: make check

View file

@ -12,5 +12,11 @@ setup: ## Create Python virtualenv and install dependencies
@if [ ! -d .venv ]; then python3 -m venv .venv; fi
@if [ -d .venv ]; then . .venv/bin/activate && pip3 install -r requirements.txt; fi
check: ## Run linter, formatter and typechecks
ruff check && ruff format && mypy config/master.cfg
check: ## Check linting, formatting and types
ruff check
ruff format --check
mypy config/master.cfg
format: ## Autofix linting and formatting issues
ruff check --fix
ruff format

View file

@ -3,9 +3,6 @@
import importlib
import os
import sys
sys.path.insert(0, os.path.expanduser("~/git/blender-devops/buildbot"))
import setup
importlib.reload(setup)
BuildmasterConfig = setup.setup()

View file

@ -36,7 +36,7 @@ devops_host_id = os.environ.get("DEVOPS_HOST_ID", default="localhost")
def setup() -> Dict[str, Any]:
####### MAIN CONFIGURATION
####### MAIN - configuration
c = {}
# Change Source