Skip to content

autofix.ci

autofix.ci #11

Workflow file for this run

name: stubs
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
cancel-in-progress: true
on: # yamllint disable-line rule:truthy
schedule:
- cron: '0 3 * * *'
workflow_dispatch:
jobs:
generate:
timeout-minutes: 10
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
architecture: 'x64'
- name: Install linux dependencies
run: |
curl -L https://github.com/sccn/liblsl/releases/download/v1.16.2/liblsl-1.16.2-jammy_amd64.deb -o liblsl-1.16.2-jammy_amd64.deb
sudo apt update
sudo apt install -y libpugixml-dev qtbase5-dev qt5-qmake
sudo apt install -y ./liblsl-1.16.2-jammy_amd64.deb
- name: Install package
run: |
python -m pip install --progress-bar off --upgrade pip setuptools
python -m pip install --progress-bar off -e .[stubs]
- name: Display system information
run: mne_lsl-sys_info --developer
- name: Generate stub files
run: python tools/stubgen.py
- name: Push stub files
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
if [ -n "$(git status --porcelain)" ]; then
git add mne_lsl/\*.pyi
git commit -m "deploy stub files [ci skip]"
git push
fi