Bump monai from 1.3.0 to 1.5.2rc1 in /research/gemini #3111
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # only has to pass for python 3.10 | |
| name: PyTest Unit Tests | |
| on: | |
| push: | |
| branches: | |
| main | |
| pull_request: | |
| branches: | |
| main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| actions: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7.6.0 | |
| with: | |
| version: "0.9.11" | |
| enable-cache: true | |
| - name: Set up Python | |
| uses: actions/setup-python@v6.2.0 | |
| with: | |
| python-version-file: ".python-version" | |
| # Display the Python version being used | |
| - name: Display Python version | |
| run: python -c "import sys; print(sys.version)" | |
| - name: Set up cache | |
| uses: actions/cache@v5 | |
| id: cached-uv-dependencies | |
| with: | |
| path: .venv | |
| key: venv-${{ runner.os }}-${{ hashFiles('**/uv.lock') }} | |
| - name: Install dependencies | |
| run: uv sync --group dev --group test | |
| - name: Run Tests | |
| run: uv run pytest -m "not smoketest" -v --cov fl4health --cov-report=xml tests | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| slug: VectorInstitute/FL4Health | |
| fail_ci_if_error: true | |
| verbose: true | |
| # Deleting some temporary files and useless folders to free up space | |
| # Deleting /usr/share/dotnet should clear ~4GB of space. | |
| # Deleting /usr/local/lib/android should clear ~12GB of space. | |
| - name: Cleanup space (before cache save) | |
| run: | | |
| df -h /dev/root | |
| sudo rm -rf /usr/share/dotnet /usr/local/lib/android | |
| df -h /dev/root | |
| - name: Minimize uv cache | |
| run: uv cache prune --ci |