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
8 changes: 7 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,10 @@ htmlcov/
.coverage

# Development Dependencies
requirements.dev.txt
requirements.dev.txt

# Renovate
renovate.json

# Logs
**/*.log
17 changes: 17 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Description

Please explain the changes you made here.

## Which issue(s) does this PR fix

- Fixes #

## PR acceptance criteria

Please make sure that the following steps are complete:

- [ ] GitHub Actions are completed and successful
- [ ] Tests are updated and passing
- [ ] Documentation is updated

## How to test changes / Special notes to the reviewer
10 changes: 5 additions & 5 deletions .github/actions/should-skip-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ inputs:
required: false
default: 'true'
file-patterns:
description: 'File extensions to check for skip logic (space or comma-separated, e.g., ".md")'
description: 'Regex patterns to match files for skip logic (space, comma, or newline-separated)'
required: false
default: '.md'
default: '\.md$'
outputs:
should_skip:
description: 'Whether the build should be skipped (true/false)'
Expand Down Expand Up @@ -145,9 +145,9 @@ runs:
echo "$CHANGED_FILES"
echo ""

# Parse file patterns (handle both space and comma-separated)
# Parse file patterns (handle space, comma, and newline-separated)
FILE_PATTERNS="${{ inputs.file-patterns }}"
FILE_PATTERNS=$(echo "$FILE_PATTERNS" | tr ',' ' ')
FILE_PATTERNS=$(echo "$FILE_PATTERNS" | tr ',\n' ' ')

echo "Checking for file patterns: $FILE_PATTERNS"
echo ""
Expand All @@ -164,7 +164,7 @@ runs:
# Check if file matches any of the patterns
FILE_MATCHES="false"
for pattern in $FILE_PATTERNS; do
if [[ "$file" =~ ${pattern}$ ]]; then
if [[ "$file" =~ ${pattern} ]]; then
FILE_MATCHES="true"
break
fi
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/build-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ jobs:
image: ${{ env.REGISTRY_IMAGE }}
commit-sha: ${{ github.sha }}
check-image: 'true'
file-patterns: '.md'
file-patterns: |
\.md$
^renovate\.json$
^examples\/
^\.cursor\/
^tests\/
- name: Install skopeo
if: steps.skip_check.outputs.should_skip != 'true'
run: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ jobs:
with:
commit-sha: ${{ github.sha }}
check-image: 'false'
file-patterns: '.md'

file-patterns: |
^.*\.md$
^renovate\.json$
^examples\/
^\.cursor\/
- name: Set up Python
if: steps.skip_check.outputs.should_skip != 'true'
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
Expand Down
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ outputs/
.vscode/

# Tests
tests/.pytest_cache/
tests/htmlcov/
tests/.coverage
.coverage
**/.pytest_cache/
**/htmlcov/
**/.coverage
**/.coverage.*