-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add autofix.ci to run stub file generation on pull request (#376)
Co-authored-by: Eric Larson <[email protected]> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
b0334c1
commit 1a4c1a5
Showing
6 changed files
with
14 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: stubs | ||
name: autofix.ci | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }} | ||
cancel-in-progress: true | ||
|
@@ -9,14 +9,10 @@ on: # yamllint disable-line rule:truthy | |
workflow_dispatch: | ||
|
||
jobs: | ||
generate: | ||
stubs: | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- run: sudo apt update && sudo apt install -y binutils libpugixml-dev | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
@@ -27,8 +23,10 @@ jobs: | |
- run: uv pip install -e .[stubs] --quiet --system | ||
- run: mne-lsl sys-info --developer | ||
- run: python tools/stubgen.py | ||
- uses: autofix-ci/[email protected] | ||
if: ${{ github.event_name == 'pull_request' }} | ||
- name: Push stub files | ||
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' | ||
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
|
This file contains 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
This file contains 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
This file contains 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