Skip to content

Commit

Permalink
reduce test files
Browse files Browse the repository at this point in the history
  • Loading branch information
shosseinimotlagh committed Dec 23, 2024
1 parent fc45b92 commit f527447
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,15 @@ jobs:
.
conan build .
if: ${{ inputs.testing == 'True' && inputs.platform == 'ubuntu-22.04' && inputs.build-type == 'Debug' && inputs.malloc-impl == 'libc' && inputs.prerelease == 'False' }}
continue-on-error: true

- name: Check disk space if previous step failed
if: failure() && steps.code_coverage_run.outcome == 'failure'
run: |
echo "Code Coverage Run. Checking disk space..."
df -h /tmp
df -h
ls -l /tmp
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
Expand All @@ -185,6 +194,16 @@ jobs:
gcov: true
if: ${{ inputs.testing == 'True' && inputs.platform == 'ubuntu-22.04' && inputs.build-type == 'Debug' && inputs.malloc-impl == 'libc' && inputs.prerelease == 'False' }}

- name: Check disk space
run: |
df -h /tmp
sudo mkdir -p /mnt/tmp
sudo chmod 1777 /mnt/tmp
sudo mount --bind /mnt/tmp /tmp
ls -l /tmp
df -h /tmp
- name: Create and Test Package
run: |
sanitize=$([[ "${{ inputs.build-type }}" == "Debug" && \
Expand All @@ -201,3 +220,18 @@ jobs:
--build missing \
.
if: ${{ inputs.testing == 'True' && ( inputs.platform != 'ubuntu-22.04' || inputs.build-type != 'Debug' || inputs.malloc-impl != 'libc' || inputs.prerelease != 'False' ) }}
continue-on-error: true

- name: Check disk space if previous step failed
if: failure() && steps.create_and_test_package.outcome == 'failure'
run: |
echo "Create and Test Package step failed. Checking disk space..."
df -h /tmp
df -h
ls -l /tmp
- name: Check disk space at end
run: |
df -h /tmp
df -h
ls -l /tmp

0 comments on commit f527447

Please sign in to comment.