Skip to content

MAINT: Remove PyQt5 from testing matrix #773

MAINT: Remove PyQt5 from testing matrix

MAINT: Remove PyQt5 from testing matrix #773

Workflow file for this run

# Upload a Python Package using Twine when a release is created
name: Build
on: # yamllint disable-line rule:truthy
release:
types: [published]
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
package:
runs-on: ubuntu-latest
if: github.event_name == 'release'
permissions:
id-token: write
environment:
name: pypi
url: https://pypi.org/p/mne-qt-browser
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build --sdist --wheel
- name: Check package
run: twine check --strict dist/*
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1