Adds support for bracketed paste mode, fixes #452. Also, adds bracketed paste passthru for vterm. #151
Workflow file for this 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
name: Python package | |
on: | |
push: | |
branches-ignore: | |
- 'dependabot/**' | |
pull_request: {} | |
jobs: | |
Test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 6 | |
matrix: | |
os: [ "ubuntu-latest"] # , "windows-latest" # enable windows after Windows driver will be added | |
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ] | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 # need for setuptools_scm | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip wheel | |
pip install -r test_requirements.txt | |
- name: Install package for test | |
run: pip install -e . | |
- name: Test | |
run: | | |
coverage run -m unittest discover -s urwid -v | |
coverage report | |
# - name: Coveralls | |
# uses: coverallsapp/github-action@v1 | |
build_wheels: | |
name: Build wheels on ${{ matrix.os }} | |
needs: [ Test ] | |
# build only on push: heavy job | |
if: github.event_name == 'push' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ "ubuntu-latest", "macos-latest" ] | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 # need for setuptools_scm | |
# Used to host cibuildwheel | |
- uses: actions/[email protected] | |
with: | |
python-version: "3.11" | |
- name: Set up QEMU | |
if: runner.os == 'Linux' | |
uses: docker/setup-qemu-action@v2 | |
with: | |
platforms: all | |
- name: Build wheels | |
uses: pypa/[email protected] | |
env: | |
# configure cibuildwheel to build native archs ('auto'), and some | |
# emulated ones | |
CIBW_ARCHS_LINUX: auto aarch64 | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: ./wheelhouse/*.whl | |
build_sdist: | |
name: Build source distribution | |
needs: [ Test ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 # need for setuptools_scm | |
- uses: actions/[email protected] | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: pip install -U twine build | |
- name: Build sdist | |
run: python -m build -s | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: dist/*.tar.gz | |
upload_pypi: | |
needs: [ build_wheels, build_sdist ] | |
# upload to PyPI on every tag | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | |
# alternatively, to publish when a GitHub Release is created, use the following rule: | |
# if: github.event_name == 'release' && github.event.action == 'published' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
# unpacks default artifact into dist/ | |
# if `name: artifact` is omitted, the action will create extra parent dir | |
name: artifact | |
path: dist | |
- uses: pypa/[email protected] | |
with: | |
user: __token__ | |
password: ${{ secrets.pypi_password }} | |
# To test: repository_url: https://test.pypi.org/legacy/ |