Skip to content

Commit 6998de9

Browse files
committed
fix: exclude Python cache files from CI script copying
- Filter out __pycache__ when copying scripts from main - Create parent directories if they don't exist - Fix .gitignore to properly exclude Python cache files - Remove already-cached Python bytecode from git Signed-off-by: Mark Pollack <[email protected]>
1 parent a9f93b0 commit 6998de9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed
-11.6 KB
Binary file not shown.

.github/workflows/main-push-fast.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ jobs:
4343
4444
# Preserve all latest GitHub Actions scripts from main
4545
echo "Using latest GitHub Actions scripts from main..."
46-
# Copy all scripts from main's .github/scripts directory
47-
for script in $(git ls-tree -r --name-only ${LATEST_MAIN} .github/scripts/); do
46+
# Copy all scripts from main's .github/scripts directory (excluding __pycache__)
47+
for script in $(git ls-tree -r --name-only ${LATEST_MAIN} .github/scripts/ | grep -v __pycache__); do
4848
echo " Updating ${script}"
49+
mkdir -p $(dirname ${script})
4950
git show ${LATEST_MAIN}:${script} > ${script}
5051
done
5152
# Note: The workflow itself is already from main (since that's what's running)

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,6 @@ CLAUDE.md
4747
**/.claude/settings.local.json
4848
.devcontainer
4949

50-
qodana.yaml__pycache__/
50+
qodana.yaml
51+
__pycache__/
52+
*.pyc

0 commit comments

Comments
 (0)