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 83b82bb
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,15 @@ jobs:
fail_on_cache_miss: true
if: ${{ inputs.testing == 'True' && github.event_name != 'pull_request' && steps.restore-cache.outputs.cache-hit != 'true' }}

- 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: Code Coverage Run
run: |
conan install \
Expand All @@ -177,6 +186,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 @@ -201,3 +219,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 83b82bb

Please sign in to comment.