Update Algorithm Stubs #71
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: Update Algorithm Stubs | |
| on: | |
| schedule: | |
| - cron: "0 0 * * 0" | |
| workflow_dispatch: | |
| inputs: {} | |
| # Required shell entrypoint to have properly activated conda environments | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| jobs: | |
| update-algorithm-stubs: | |
| name: Checking out timeeval-algorithms to update algorithm stubs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Checkout timeeval-algorithms | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: timeeval/timeeval-algorithms | |
| path: './timeeval-algorithms' | |
| # ref: 'main' | |
| - name: Setup Miniconda | |
| uses: conda-incubator/[email protected] | |
| with: | |
| use-mamba: true | |
| auto-update-conda: true | |
| python-version: "3.7" | |
| - name: Install dependencies | |
| run: | | |
| pip install -r requirements.txt | |
| - name: Generate code | |
| run: | | |
| python -m timeeval_experiments.generator algo-stubs -f ./timeeval-algorithms | |
| - name: Commit and create pull request | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| add-paths: | | |
| timeeval/algorithms | |
| docs/api/timeeval.algorithms.rst | |
| commit-message: "[automated] Update algorithm stubs" | |
| branch: "feat/automated-update-algorithm-stubs" | |
| title: "[automated] Update algorithm stubs" | |
| labels: "comp: algorithms,🤖 bot" | |
| reviewers: "codelionx,wenig" |