This commit is contained in:
parent
da6339d74d
commit
6a699a481c
4 changed files with 21 additions and 13 deletions
|
@ -1,14 +1,19 @@
|
|||
name: Run checks
|
||||
on: [ push, pull_request ]
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
checks:
|
||||
runs-on: docker
|
||||
runs-on: ubuntu-24.04
|
||||
env:
|
||||
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
|
||||
- run: lsb_release -a
|
||||
- run: uname -srm
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.13'
|
||||
- run: pip install -r requirements.txt
|
||||
- run: make check
|
10
Makefile
10
Makefile
|
@ -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
|
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue