Fix naming of CBSD #104
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 benchopt | |
| on: | |
| push: | |
| branches: | |
| - main | |
| create: | |
| tags: | |
| - '**' | |
| pull_request: | |
| schedule: | |
| # Run every 1st of the month at 7:42am UTC. | |
| - cron: '42 7 1 * *' | |
| jobs: | |
| find-benchmarks: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| benchmark-dirs: ${{ steps.find-dirs.outputs.dirs }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: pip install GitPython | |
| - name: Find benchmark directories | |
| id: find-dirs | |
| run: python .github/scripts/find_benchmarks.py | |
| env: | |
| GITHUB_SHA: ${{ github.sha }} | |
| GITHUB_EVENT_NAME: ${{ github.event_name }} | |
| GITHUB_EVENT_BEFORE: ${{ github.event.before }} | |
| GITHUB_BASE_REF: ${{ github.event.pull_request.base.ref }} | |
| dry-run-benchmarks: | |
| needs: find-benchmarks | |
| strategy: | |
| matrix: | |
| benchmark_dir: ${{ fromJson(needs.find-benchmarks.outputs.benchmark-dirs) }} | |
| uses: benchopt/template_benchmark/.github/workflows/test_benchmarks.yml@main | |
| with: | |
| benchopt_branch: benchopt@main | |
| benchmark_dir: ${{ matrix.benchmark_dir }} | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install Black | |
| run: pip install black | |
| - name: Run Black check | |
| run: black --check . |