Skip to content

Commit

Permalink
Fixes: fixed tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Fill84 committed Feb 24, 2025
1 parent 4ae0ea6 commit 2d26673
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,28 +81,16 @@ jobs:
SampleImage="${{ github.workspace }}/test_files/sample.png" # Ensure this exists or will be generated
# Cleanup
# Remove test files if they exist
if [ -f "${{ github.workspace }}/test_files" ]; then
rm -rf ${{ github.workspace }}/test_files
fi
# Create test files
rm -rf ${{ github.workspace }}/test_files
mkdir -p ${{ github.workspace }}/test_files
generate_samples() {
Total_Count=0
Current_Count=0
TOTAL_COUNT=0
CURRENT_COUNT=0
if [[ ! -f $SampleVideo ]]; then
$Total_Count=$(($Total_Count + 1))
fi
if [[ ! -f $SampleAudio ]]; then
$Total_Count=$(($Total_Count + 1))
fi
if [[ ! -f $SampleImage ]]; then
$Total_Count=$(($Total_Count + 1))
fi
[[ ! -f "$SAMPLE_VIDEO" ]] && ((TOTAL_COUNT++))
[[ ! -f "$SAMPLE_AUDIO" ]] && ((TOTAL_COUNT++))
[[ ! -f "$SAMPLE_IMAGE" ]] && ((TOTAL_COUNT++))
if [[ ! -f $SampleVideo ]]; then
Start_Time=$(data +%s)
Expand Down

0 comments on commit 2d26673

Please sign in to comment.