Add denoisers to CBSD500 gaussian denoising benchmark #56
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
| name: Test deepinv_bench | |
| on: | |
| push: | |
| branches: | |
| - main | |
| create: | |
| tags: | |
| - '**' | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| CONDA_ENV: 'run_env' | |
| BENCHOPT_CONDA_CMD: 'mamba' | |
| defaults: | |
| run: | |
| # Need to use this shell to get conda working properly. | |
| # See https://github.com/marketplace/actions/setup-miniconda#important | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Get Date | |
| id: get-date | |
| run: | | |
| echo "date=$(/bin/date -u "+%Y%m")" >> $GITHUB_OUTPUT | |
| shell: bash | |
| - name: Cache benchopt runs and conda packages | |
| id: cache-benchopt | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/conda_pkgs_dir | |
| # The cache is unique for each OS and we invalidate it every month | |
| # to avoid stale caches. | |
| key: ${{ runner.os }}-${{ steps.get-date.outputs.date }} | |
| - name: Setup Conda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| auto-update-conda: true | |
| miniforge-version: latest | |
| mamba-version: "*" | |
| use-mamba: true | |
| channels: conda-forge | |
| python-version: '3.12' | |
| activate-environment: ${{ env.CONDA_ENV }} | |
| use-only-tar-bz2: true # Needed for package caching | |
| - name: Install deepinv_bench and its dependencies | |
| run: | | |
| mamba install -yq pip | |
| pip install -e .[test] | |
| - name: Run tests | |
| run: pytest -vs |