Skip to content

Commit

Permalink
tests speed up
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier DEBAUCHE committed Jul 26, 2024
1 parent e869862 commit f9bf159
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 267 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/UT_common_models_d.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ concurrency:
cancel-in-progress: true

jobs:
test-davit-models:
test-d-models:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/UT_common_models_e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ concurrency:
cancel-in-progress: true

jobs:
test-edgenet-models:
test-e-models:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
52 changes: 7 additions & 45 deletions .github/workflows/UT_common_models_f.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ concurrency:
cancel-in-progress: true

jobs:
test-fastvit-models:
test-f-models:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -41,52 +41,14 @@ 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 Fastvit
run: |
coverage run manage.py test fl_common.tests.tests_models_fastvit
coverage xml -o coverage-fastvit.xml
coverage report
test-focalnet-models:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
needs: test-fastvit-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_fastvit
rm -rf /home/runner/.cache/huggingface/*
rm -rf /home/runner/.cache/torch/*
- name: Fl_common Models Focalnet
run: |
coverage run manage.py test fl_common.tests.tests_models_focalnet
coverage xml -o coverage-focalnet.xml
coverage report
python manage.py test fl_common.tests.tests_models_focalnet
rm -rf /home/runner/.cache/huggingface/*
rm -rf /home/runner/.cache/torch/*
51 changes: 7 additions & 44 deletions .github/workflows/UT_common_models_g.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ concurrency:
cancel-in-progress: true

jobs:
test-gcvit-models:
test-g-models:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -41,51 +41,14 @@ 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 Gcvit
run: |
coverage run manage.py test fl_common.tests.tests_models_gcvit
coverage xml -o coverage-gcvit.xml
coverage report
test-ghostnet-models:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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_gcvit
rm -rf /home/runner/.cache/huggingface/*
rm -rf /home/runner/.cache/torch/*
- name: Fl_common Models Gcvit
run: |
coverage run manage.py test fl_common.tests.tests_models_ghostnet
coverage xml -o coverage-ghostnet.xml
coverage report
python manage.py test fl_common.tests.tests_models_ghostnet
rm -rf /home/runner/.cache/huggingface/*
rm -rf /home/runner/.cache/torch/*
140 changes: 14 additions & 126 deletions .github/workflows/UT_common_models_h.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ concurrency:
cancel-in-progress: true

jobs:
test-harcorenas-models:
test-h-models:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -41,136 +41,24 @@ 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 Hardcorenas
run: |
coverage run manage.py test fl_common.tests.tests_models_hardcorenas
coverage xml -o coverage-hardcorenas.xml
coverage report
test-hgnet-models:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
needs: test-harcorenas-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 Hgnet
run: |
coverage run manage.py test fl_common.tests.tests_models_hgnet
coverage xml -o coverage-hgnet.xml
coverage report
test-hiera-models:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
needs: test-hgnet-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_hardcorenas
rm -rf /home/runner/.cache/huggingface/*
rm -rf /home/runner/.cache/torch/*
- name: Fl_common Models Hgnet
run: |
coverage run manage.py test fl_common.tests.tests_models_hiera
coverage xml -o coverage-hiera.xml
coverage report
test-hrnet-models:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
needs: test-hiera-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
python manage.py test fl_common.tests.tests_models_hgnet
rm -rf /home/runner/.cache/huggingface/*
rm -rf /home/runner/.cache/torch/*
- name: Fl_common Models Hiera
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_hiera
rm -rf /home/runner/.cache/huggingface/*
rm -rf /home/runner/.cache/torch/*
- name: Fl_common Models Hrnet
run: |
coverage run manage.py test fl_common.tests.tests_models_hrnet
coverage xml -o coverage-hrnet.xml
coverage report
python manage.py test fl_common.tests.tests_models_hrnet
rm -rf /home/runner/.cache/huggingface/*
rm -rf /home/runner/.cache/torch/*
52 changes: 7 additions & 45 deletions .github/workflows/UT_common_models_i.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ concurrency:
cancel-in-progress: true

jobs:
test-inception-models:
test-i-models:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -41,52 +41,14 @@ 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 Inception
run: |
coverage run manage.py test fl_common.tests.tests_models_inception
coverage xml -o coverage-inception.xml
coverage report
test-inception_next-models:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
needs: test-inception-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: true
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_inception
rm -rf /home/runner/.cache/huggingface/*
rm -rf /home/runner/.cache/torch/*
- name: Fl_common Models Inception Next
run: |
coverage run manage.py test fl_common.tests.tests_models_inceptionnext
coverage xml -o coverage-inceptionnext.xml
coverage report
python manage.py test fl_common.tests.tests_models_inceptionnext
rm -rf /home/runner/.cache/huggingface/*
rm -rf /home/runner/.cache/torch/*
Loading

0 comments on commit f9bf159

Please sign in to comment.