fix CI/CD test workflow to properly copy examples directory
This commit is contained in:
parent
16bfc027bf
commit
d6d2d7a890
2 changed files with 220 additions and 3 deletions
|
|
@ -14,8 +14,15 @@ jobs:
|
|||
- name: Checkout code
|
||||
run: |
|
||||
git clone https://git.raines.xyz/robojerk/deb-mock.git /tmp/deb-mock
|
||||
# Copy all files including hidden ones
|
||||
cp -r /tmp/deb-mock/* .
|
||||
cp -r /tmp/deb-mock/.* . 2>/dev/null || true
|
||||
cp -r /tmp/deb-mock/.gitignore . 2>/dev/null || true
|
||||
cp -r /tmp/deb-mock/.forgejo . 2>/dev/null || true
|
||||
# Verify all files are copied
|
||||
echo "Checking repository contents:"
|
||||
ls -la
|
||||
echo "Checking examples directory:"
|
||||
ls -la examples/ || echo "examples directory not found"
|
||||
|
||||
- name: Set up Python
|
||||
run: |
|
||||
|
|
@ -124,5 +131,12 @@ jobs:
|
|||
- name: Verify example package
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
ls -la examples/
|
||||
cat examples/hello_1.0.dsc
|
||||
echo "Checking examples directory:"
|
||||
ls -la examples/ || echo "examples directory not found"
|
||||
if [ -f examples/hello_1.0.dsc ]; then
|
||||
echo "Example package found:"
|
||||
cat examples/hello_1.0.dsc
|
||||
else
|
||||
echo "Example package not found"
|
||||
exit 1
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue