From 74d5e0c7ecd77da7408d35d6b57abad4e49ed878 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Mon, 9 Oct 2023 17:30:54 -0400 Subject: [PATCH] test in GHA --- .github/workflows/main.yml | 19 +++++++++++++++++++ .travis.yml | 12 ------------ README.md | 4 ++-- requirements-dev.txt | 1 - tox.ini | 9 --------- 5 files changed, 21 insertions(+), 24 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..3b225b7 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,19 @@ +name: main + +on: + push: + branches: [main, test-me-*] + tags: '*' + pull_request: + +jobs: + main-windows: + uses: asottile/workflows/.github/workflows/tox.yml@v1.6.0 + with: + env: '["py38"]' + os: windows-latest + main-linux: + uses: asottile/workflows/.github/workflows/tox.yml@v1.6.0 + with: + env: '["py38", "py39", "py310", "py311", "py312"]' + os: ubuntu-latest diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 493980f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: python -dist: trusty -sudo: false -install: pip install tox coveralls -script: make test -python: '3.6' -after_success: - - coveralls -cache: - directories: - - $HOME/.cache/pip - - $HOME/.pre-commit diff --git a/README.md b/README.md index e22f7c2..85aa8bf 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ pygments-ansi-color ------------------- -[![Build Status](https://travis-ci.org/chriskuehl/pygments-ansi-color.svg?branch=master)](https://travis-ci.org/chriskuehl/pygments-ansi-color) -[![Coverage Status](https://coveralls.io/repos/github/chriskuehl/pygments-ansi-color/badge.svg?branch=master)](https://coveralls.io/github/chriskuehl/pygments-ansi-color?branch=master) +[![build status](https://github.com/chriskuehl/pygments-ansi-color/actions/workflows/main.yml/badge.svg)](https://github.com/chriskuehl/pygments-ansi-color/actions/workflows/main.yml) +[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/chriskuehl/pygments-ansi-color/main.svg)](https://results.pre-commit.ci/latest/github/chriskuehl/pygments-ansi-color/main) [![PyPI version](https://badge.fury.io/py/pygments-ansi-color.svg)](https://pypi.python.org/pypi/pygments-ansi-color) An ANSI color-code highlighting lexer for Pygments. diff --git a/requirements-dev.txt b/requirements-dev.txt index 18038e2..bed7f4f 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,4 @@ coverage mypy -pre-commit>=1.0.0 pytest types-pygments diff --git a/tox.ini b/tox.ini index 367a8d2..f8a1df9 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,5 @@ [tox] envlist = py -tox_pip_extensions_ext_venv_update = true -tox_pip_extensions_ext_pip_custom_platform = true [testenv] deps = -rrequirements-dev.txt @@ -10,13 +8,6 @@ commands = coverage run -m pytest {posargs:tests} coverage report --fail-under 100 mypy pygments_ansi_color - pre-commit install -f --install-hooks - pre-commit run --all-files - -[testenv:venv] -basepython = /usr/bin/python3.9 -envdir = venv -commands = [flake8] max-line-length = 119