diff --git a/.github/workflows/UT_common_models_a.yml b/.github/workflows/UT_common_models_a.yml index d3dcb7b1..f4fe69a9 100644 --- a/.github/workflows/UT_common_models_a.yml +++ b/.github/workflows/UT_common_models_a.yml @@ -8,7 +8,7 @@ concurrency: cancel-in-progress: true jobs: - test-alexnet-model: + test-a-model: runs-on: ubuntu-latest strategy: matrix: @@ -45,3 +45,5 @@ jobs: - name: Fl_common Models AlexNet run: | python manage.py test fl_common.tests.tests_models_alexnet + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* diff --git a/.github/workflows/UT_common_models_b.yml b/.github/workflows/UT_common_models_b.yml index 00e26c35..3a749597 100644 --- a/.github/workflows/UT_common_models_b.yml +++ b/.github/workflows/UT_common_models_b.yml @@ -8,7 +8,7 @@ concurrency: cancel-in-progress: true jobs: - test-beit-models: + test-b-models: runs-on: ubuntu-latest strategy: matrix: @@ -43,81 +43,16 @@ jobs: python -m uv pip install -r tests.txt - name: Fl_common Models Beit run: | - python -m manage.py test fl_common.tests.tests_models_beit - - test-byoanet-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-beit-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install -r tests.txt + python manage.py test fl_common.tests.tests_models_beit + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* - name: Fl_common Models Byoanet run: | - python -m manage.py test fl_common.tests.tests_models_byoanet - - test-byobnet-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-byoanet-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install -r tests.txt + python manage.py test fl_common.tests.tests_models_byoanet + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* - name: Fl_common Models Byobnet run: | - python -m manage.py test fl_common.tests.tests_models_byobnet + python manage.py test fl_common.tests.tests_models_byobnet + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* diff --git a/.github/workflows/UT_common_models_c.yml b/.github/workflows/UT_common_models_c.yml index e5494c2f..ea51696a 100644 --- a/.github/workflows/UT_common_models_c.yml +++ b/.github/workflows/UT_common_models_c.yml @@ -8,7 +8,7 @@ concurrency: cancel-in-progress: true jobs: - test-cait-models: + test-c-models: runs-on: ubuntu-latest strategy: matrix: @@ -41,304 +41,44 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install uv - python -m uv pip install coverage python -m uv pip install -r tests.txt - name: Fl_common Models Cait run: | - coverage run manage.py test fl_common.tests.tests_models_cait - coverage xml -o coverage-cait.xml - coverage report - - test-coat-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-cait-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install coverage - python -m uv pip install -r tests.txt + python manage.py test fl_common.tests.tests_models_cait + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* - name: Fl_common Models Coat run: | - coverage run manage.py test fl_common.tests.tests_models_coat - coverage xml -o coverage-coat.xml - coverage report - - test-convit-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-coat-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install coverage - python -m uv pip install -r tests.txt + python manage.py test fl_common.tests.tests_models_coat + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* - name: Fl_common Models Convit run: | - coverage run manage.py test fl_common.tests.tests_models_convit - coverage xml -o coverage-convit.xml - coverage report - - test-convmixer-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-convit-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install coverage - python -m uv pip install -r tests.txt + python manage.py test fl_common.tests.tests_models_convit + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* - name: Fl_common Models Convmixer run: | - coverage run manage.py test fl_common.tests.tests_models_convmixer - coverage xml -o coverage-convmixer.xml - coverage report - - test-convnext-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-convmixer-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install coverage - python -m uv pip install -r tests.txt + python manage.py test fl_common.tests.tests_models_convmixer + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* - name: Fl_common Models Convnext run: | - coverage run manage.py test fl_common.tests.tests_models_convnext - coverage xml -o coverage-convnext.xml - coverage report - - test-crossvit-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-convnext-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install coverage - python -m uv pip install -r tests.txt + python manage.py test fl_common.tests.tests_models_convnext + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* - name: Fl_common Models Crossvit run: | - coverage run manage.py test fl_common.tests.tests_models_crossvit - coverage xml -o coverage-crossvit.xml - coverage report - - test-cspnet-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-crossvit-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install coverage - python -m uv pip install -r tests.txt + python manage.py test fl_common.tests.tests_models_crossvit + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* - name: Fl_common Models Cspnet run: | - coverage run manage.py test fl_common.tests.tests_models_cspnet - coverage xml -o coverage-cspnet.xml - coverage report - - test-cvt-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-cspnet-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install coverage - python -m uv pip install -r tests.txt + python manage.py test fl_common.tests.tests_models_cspnet + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* - name: Fl_common Models CVT run: | - coverage run manage.py test fl_common.tests.tests_models_cvt - coverage xml -o coverage-cvt.xml - coverage report + python manage.py test fl_common.tests.tests_models_cvt + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* diff --git a/.github/workflows/UT_common_models_d.yml b/.github/workflows/UT_common_models_d.yml index 9b704077..fd622bb4 100644 --- a/.github/workflows/UT_common_models_d.yml +++ b/.github/workflows/UT_common_models_d.yml @@ -41,178 +41,29 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install uv - python -m uv pip install coverage python -m uv pip install -r tests.txt - name: Fl_common Models Davit run: | - coverage run manage.py test fl_common.tests.tests_models_davit - coverage xml -o coverage-davit.xml - coverage report - - test-deit-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-davit-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install coverage - python -m uv pip install -r tests.txt + python manage.py test fl_common.tests.tests_models_davit + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* - name: Fl_common Models Deit run: | - coverage run manage.py test fl_common.tests.tests_models_deit - coverage xml -o coverage-deit.xml - coverage report - - test-densenet-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-deit-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install coverage - python -m uv pip install -r tests.txt + python manage.py test fl_common.tests.tests_models_deit + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* - name: Fl_common Models Densenet run: | - coverage run manage.py test fl_common.tests.tests_models_densenet - coverage xml -o coverage-densenet.xml - coverage report - - test-dla-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-densenet-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install coverage - python -m uv pip install -r tests.txt + python manage.py test fl_common.tests.tests_models_densenet + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* - name: Fl_common Models Dla run: | - coverage run manage.py test fl_common.tests.tests_models_dla - coverage xml -o coverage-dla.xml - coverage report - - test-dpn-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-dla-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install coverage - python -m uv pip install -r tests.txt + python manage.py test fl_common.tests.tests_models_dla + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* - name: Fl_common Models Dpn run: | - coverage run manage.py test fl_common.tests.tests_models_dpn - coverage xml -o coverage-dpn.xml - coverage report + python manage.py test fl_common.tests.tests_models_dpn + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* diff --git a/.github/workflows/UT_common_models_e.yml b/.github/workflows/UT_common_models_e.yml index 0b7ec813..4176dfa7 100644 --- a/.github/workflows/UT_common_models_e.yml +++ b/.github/workflows/UT_common_models_e.yml @@ -41,346 +41,49 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install uv - python -m uv pip install coverage python -m uv pip install -r tests.txt - name: Fl_common Models Edgenet run: | - coverage run manage.py test fl_common.tests.tests_models_edgenet - coverage xml -o coverage-edgenet.xml - coverage report - - test-efficientformer-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-edgenet-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install coverage - python -m uv pip install -r tests.txt + python manage.py test fl_common.tests.tests_models_edgenet + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* - name: Fl_common Models Efficientformer run: | - coverage run manage.py test fl_common.tests.tests_models_efficientformer - coverage xml -o coverage-efficientformer.xml - coverage report - - test-efficientformer-v2-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-efficientformer-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install coverage - python -m uv pip install -r tests.txt + python manage.py test fl_common.tests.tests_models_efficientformer + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* - name: Fl_common Models Efficientformer v2 run: | - coverage run manage.py test fl_common.tests.tests_models_efficientformer_v2 - coverage xml -o coverage-efficientformer_v2.xml - coverage report - - test-efficienet-mit-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-efficientformer-v2-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install coverage - python -m uv pip install -r tests.txt + python manage.py test fl_common.tests.tests_models_efficientformer_v2 + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* - name: Fl_common Models Efficientvit_mit run: | - coverage run manage.py test fl_common.tests.tests_models_efficientvit_mit - coverage xml -o coverage-efficientvit_mit.xml - coverage report - - test-efficienet-msra-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-efficienet-mit-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install coverage - python -m uv pip install -r tests.txt + python run manage.py test fl_common.tests.tests_models_efficientvit_mit + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* - name: Fl_common Models Efficientvit_msra run: | - coverage run manage.py test fl_common.tests.tests_models_efficientvit_msra - coverage xml -o coverage-efficientvit_msra.xml - coverage report - - test-efficienet-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-efficienet-msra-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install coverage - python -m uv pip install -r tests.txt + python run manage.py test fl_common.tests.tests_models_efficientvit_msra + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* - name: Fl_common Models Efficientnet run: | - coverage run manage.py test fl_common.tests.tests_models_efficientnet - coverage xml -o coverage-efficientnet.xml - coverage report - - test-eva1-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-efficienet-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install coverage - python -m uv pip install -r tests.txt + python manage.py test fl_common.tests.tests_models_efficientnet + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* - name: Fl_common Models Eva Part 1 run: | - coverage run manage.py test fl_common.tests.tests_models_eva_001 - coverage xml -o coverage-eva_001.xml - coverage report - - test-eva2-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-eva1-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install coverage - python -m uv pip install -r tests.txt + python manage.py test fl_common.tests.tests_models_eva_001 + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* - name: Fl_common Models Eva Part 2 run: | - coverage run manage.py test fl_common.tests.tests_models_eva_002 - coverage xml -o coverage-eva_002.xml - coverage report - - test-eva3-models: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - needs: test-eva2-models - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: false - swap-storage: true - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install coverage - python -m uv pip install -r tests.txt - - name: Fl_common Models Eva Part 2 + python manage.py test fl_common.tests.tests_models_eva_002 + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/* + - name: Fl_common Models Eva Part 3 run: | - coverage run manage.py test fl_common.tests.tests_models_eva_003 - coverage xml -o coverage-eva_003.xml - coverage report + python manage.py test fl_common.tests.tests_models_eva_003 + rm -rf /home/runner/.cache/huggingface/* + rm -rf /home/runner/.cache/torch/*