Skip to content

add StripAnsiHighlighter #410

add StripAnsiHighlighter

add StripAnsiHighlighter #410

Workflow file for this run

name: Python package
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install -U pip wheel
python -m pip install -r requirements-ci.txt
- run: python -m black . --check
- run: python -m isort . --check-only
- run: python -m flake8 .
- run: python -m bandit . --recursive -c pyproject.toml
test:
needs: lint
strategy:
matrix:
os: [ubuntu-20.04, macos-13]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install -U pip wheel
python -m pip install -r requirements-test.txt
- name: Install dependencies
if: matrix.python-version == '3.7'
run: |
python -m nltk.downloader punkt
- name: Install dependencies
if: matrix.python-version != '3.7'
run: |
python -m nltk.downloader punkt_tab
- name: Run tests
run: |
python -OO -m unittest discover -v genutility.tests "*.py"
deploy:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Build dists
run: |
python -m pip install wheel build
python -m build
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}