Skip to content

FIX: detect TSV encoding before reading #1268

FIX: detect TSV encoding before reading

FIX: detect TSV encoding before reading #1268

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
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@v8.1.0
with:
python-version: ${{ matrix.python-version }}
activate-environment: true
prune-cache: false
save-cache: false # just reuse one if available (and it should be)
cache-dependency-glob: |
./pyproject.toml
- run: uv pip install --upgrade pip build twine
- run: python -m build --sdist --wheel
- run: twine check --strict dist/*
- uses: actions/upload-artifact@v7
with:
name: dist
path: dist
include-hidden-files: true
pypi-upload:
needs: package
runs-on: ubuntu-latest
if: github.event_name == 'release'
permissions:
id-token: write # for trusted publishing
environment:
name: pypi
url: https://pypi.org/p/mne-bids
steps:
- uses: actions/download-artifact@v8
with:
name: dist
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
if: github.event_name == 'release'