summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yaml13
-rw-r--r--Makefile3
2 files changed, 14 insertions, 2 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 1eba408a..ff131aa9 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -4,7 +4,6 @@ on: [push, pull_request]
jobs:
build:
-
runs-on: ${{ matrix.os }}
strategy:
matrix:
@@ -29,3 +28,15 @@ jobs:
- name: Test package
run: py.test
if: runner.os == 'Windows' && ! contains(matrix['python-version'], 'pypy')
+
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-python@v2
+ with:
+ python-version: 3.8
+ - name: Check out regexlint
+ run: git clone https://github.com/pygments/regexlint
+ - name: Run regexlint
+ run: make regexlint REGEXLINT=`pwd`/regexlint
diff --git a/Makefile b/Makefile
index 791368e5..7de5f87a 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,8 @@ PYTHON ?= python3
export PYTHONPATH = $(shell echo "$$PYTHONPATH"):$(shell python -c 'import os; print ":".join(os.path.abspath(line.strip()) for line in file("PYTHONPATH"))' 2>/dev/null)
.PHONY: all check clean clean-pyc codetags docs mapfiles \
- pylint reindent test test-coverage
+ pylint reindent test test-coverage test-examplefiles \
+ tox-test tox-test-coverage regexlint
all: clean-pyc check test