Skip to content

730 retinal oct rpd segmentation #2352

730 retinal oct rpd segmentation

730 retinal oct rpd segmentation #2352

Workflow file for this run

name: premerge-cpu-check
on:
# code format check for pull requests and the dev branch
push:
branches:
- dev
pull_request:
concurrency:
# automatically cancel the previously triggered workflows when there's a newer version
group: premerge-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
premerge-cpu:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.10.14 # This will be the default Python
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
# The python-version here is for Conda's base, if activated.
# We set auto-activate-base to false, so actions/setup-python's version remains default.
python-version: 3.10.14
auto-activate-base: false # Crucial: ensures the Python 3.10 from actions/setup-python is the default
- name: Initialize Conda for shell integration
shell: bash
run: |
conda init bash
eval "$(conda shell.bash hook)"
- name: cache weekly timestamp
id: pip-cache-ts
run: |
echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
- name: Get pip cache directory
id: pip-cache-dir
# This runs using the default Python (3.10)
shell: bash
run: echo "dir=$(python -m pip cache dir)" >> $GITHUB_OUTPUT
- name: Cache pip dependencies (for Python 3.10 global env)
uses: actions/cache@v4
id: cache-pip
with:
path: ${{ steps.pip-cache-dir.outputs.dir }}
key: ${{ runner.os }}-pip-3.10-${{ steps.pip-cache-ts.outputs.datew }}-${{ hashFiles('**/requirements.txt', '**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-3.10-${{ steps.pip-cache-ts.outputs.datew }}-
# Cache Conda packages (for environments your bash script might create)
# setup-miniconda action sets MINICONDA_PATH_0 environment variable
- name: Cache Conda packages
uses: actions/cache@v4
id: cache-conda
with:
path: ${{ env.MINICONDA_PATH_0 }}/pkgs
key: ${{ runner.os }}-conda-pkgs-${{ steps.pip-cache-ts.outputs.datew }}-${{ hashFiles('**/environment*.yml', '**/requirements*.txt') }} # Adjust hashFiles as needed
restore-keys: |
${{ runner.os }}-conda-pkgs-${{ steps.pip-cache-ts.outputs.datew }}-
- name: Install global Python dependencies (using Python 3.10)
shell: bash
run: |
python -m pip install --upgrade pip wheel
python -m pip install --upgrade setuptools
- name: Run check script
shell: bash -el {0}
run: |
# clean up temporary files
$(pwd)/runtests.sh --clean
df -h
bash $(pwd)/ci/run_premerge_cpu.sh