Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 3 additions & 22 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Generated from:
# https://github.com/plone/meta/tree/master/config/default
# See the inline comments on how to expand/tweak this configuration file
#

# EditorConfig Configuration file, for more details see:
# http://EditorConfig.org
# https://EditorConfig.org
# EditorConfig is a convention description, that could be interpreted
# by multiple editors to enforce common coding conventions for specific
# file types
Expand All @@ -22,33 +19,17 @@ trim_trailing_whitespace = true
charset = utf-8
# Indent style default
indent_style = space
# Max Line Length - a hard line wrap, should be disabled
max_line_length = off

[*.{py,cfg,ini}]
# 4 space indentation
indent_size = 4

[*.{yml,zpt,pt,dtml,zcml}]
# 2 space indentation
indent_size = 2

[*.{json,jsonl,js,jsx,ts,tsx,css,less,scss,html}] # Frontend development
[*.{html,dtml,pt,zpt,xml,zcml,js,json,ts,less,scss,css,sass,yml,yaml}]
# 2 space indentation
indent_size = 2
max_line_length = 80

[{Makefile,.gitmodules}]
# Tab indentation (no size specified, but view as 4 spaces)
indent_style = tab
indent_size = unset
tab_width = unset


##
# Add extra configuration options in .meta.toml:
# [editorconfig]
# extra_lines = """
# _your own configuration lines_
# """
##
28 changes: 28 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Change log check
on:
pull_request:
types: [assigned, opened, synchronize, reopened, labeled, unlabeled]
branches:
- main

env:
python-version: 3.13

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
# Fetch all history
fetch-depth: '0'

- name: Setup uv
uses: plone/meta/.github/actions/setup_uv@2.x
with:
python-version: ${{ env.python-version }}
- name: Check for presence of a Change Log fragment (only pull requests)
if: github.event_name == 'pull_request'
run: |
git fetch --no-tags origin ${{ github.base_ref }}
uvx towncrier check --compare-with origin/${{ github.base_ref }} --config pyproject.toml --dir .
70 changes: 70 additions & 0 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: 'Compute Config variables'

on:
workflow_call:
inputs:
python-version:
required: false
type: string
default: "3.13"
plone-version:
required: false
type: string
default: "6.1.4"
outputs:
backend:
description: "Flag reporting if we should run the backend jobs"
value: ${{ jobs.config.outputs.backend }}
docs:
description: "Flag reporting if we should run the docs jobs"
value: ${{ jobs.config.outputs.docs }}
base-tag:
description: "Base tag to be used when creating container images"
value: ${{ jobs.config.outputs.base-tag }}
python-version:
description: "Python version to be used"
value: ${{ inputs.python-version }}
plone-version:
description: "Plone version to be used"
value: ${{ inputs.plone-version }}

jobs:
config:
runs-on: ubuntu-latest
outputs:
backend: ${{ steps.filter.outputs.backend }}
docs: ${{ steps.filter.outputs.docs }}
base-tag: ${{ steps.vars.outputs.BASE_TAG }}
plone-version: ${{ steps.vars.outputs.plone-version }}

steps:
- name: Checkout
uses: actions/checkout@v5

- name: Compute several vars needed for the CI
id: vars
run: |
echo "base-tag=sha-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
echo "plone-version=${{ inputs.plone-version }}" >> $GITHUB_OUTPUT

- uses: dorny/paths-filter@v3.0.2
id: filter
with:
filters: |
backend:
- '**'
- '.github/workflows/config.yml'
- '.github/workflows/main.yml'
docs:
- '.readthedocs.yaml'
- 'docs/**'
- '.github/workflows/docs.yaml'

- name: Test vars
run: |
echo "base-tag: ${{ steps.vars.outputs.base-tag }}"
echo 'plone-version: ${{ steps.vars.outputs.plone-version }}'
echo 'event-name: ${{ github.event_name }}'
echo "ref-name: ${{ github.ref_name }}"
echo 'Paths - backend: ${{ steps.filter.outputs.backend }}'
echo 'Paths - docs: ${{ steps.filter.outputs.docs }}'
61 changes: 61 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: kitconcept.seo CI

on:
push:

jobs:

config:
name: "Compute configuration values"
uses: ./.github/workflows/config.yml
lint:
name: "Lint codebase"
uses: plone/meta/.github/workflows/backend-lint.yml@2.x
needs:
- config
with:
python-version: ${{ needs.config.outputs.python-version }}
plone-version: ${{ needs.config.outputs.plone-version }}
test:
name: "Test codebase"
uses: plone/meta/.github/workflows/backend-pytest.yml@2.x
needs:
- config
strategy:
matrix:
python-version: ["3.13", "3.12", "3.11", "3.10"]
plone-version: ["6.2-latest", "6.1-latest", "6.0-latest"]
with:
python-version: ${{ matrix.python-version }}
plone-version: ${{ matrix.plone-version }}

coverage:
name: "Backend: Coverage"
uses: plone/meta/.github/workflows/backend-pytest-coverage.yml@2.x
needs:
- config
- test
with:
python-version: ${{ needs.config.outputs.python-version }}
plone-version: ${{ needs.config.outputs.plone-version }}

report:
name: "Final report"
if: ${{ always() }}
runs-on: ubuntu-latest
needs:
- config
- lint
- test
- coverage
steps:
- name: Report
shell: bash
run: |
echo '# Workflow Report' >> $GITHUB_STEP_SUMMARY
echo '| Job ID | Conclusion |' >> $GITHUB_STEP_SUMMARY
echo '| --- | --- |' >> $GITHUB_STEP_SUMMARY
echo '| Config | ${{ needs.config.result }} |' >> $GITHUB_STEP_SUMMARY
echo '| Lint | ${{ needs.coverage.result }} |' >> $GITHUB_STEP_SUMMARY
echo '| Test | ${{ needs.coverage.result }} |' >> $GITHUB_STEP_SUMMARY
echo '| Coverage | ${{ needs.coverage.result }} |' >> $GITHUB_STEP_SUMMARY
65 changes: 0 additions & 65 deletions .github/workflows/meta.yml

This file was deleted.

40 changes: 15 additions & 25 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,55 +1,45 @@
# Generated from:
# https://github.com/plone/meta/tree/master/config/default
# See the inline comments on how to expand/tweak this configuration file
# python related
*.egg-info
*.pyc
*.pyo

# tools related
build/
__pycache__/
.coverage
.mypy_cache
.pytest_cache
.ruff_cache
/build/
coverage.xml
dist/
docs/_build
__pycache__/
.tox
.vscode/
node_modules/

# venv / buildout related
.eggs/
.installed.cfg
.mr.developer.cfg
.venv/
bin/
develop-eggs/
eggs/
.eggs/
etc/
.installed.cfg
include/
lib/
lib64
.mr.developer.cfg
parts/
pyvenv.cfg
var/

# mxdev
/instance/
.installed.txt
.lock
/.mxdev_cache/
/.make-sentinels/
/*-mxdev.txt
/instance/
/reports/
/sources/
/venv/
.installed.txt
*.mo

# pipforester
forest.dot
forest.json

##
# Add extra configuration options in .meta.toml:
# [gitignore]
# extra_lines = """
# _your own configuration lines_
# """
##
constraints*.txt
requirements*.txt
20 changes: 0 additions & 20 deletions .meta.toml

This file was deleted.

Loading