diff options
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r-- | .github/workflows/test.yml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a3d3930..4018e07 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,10 +1,6 @@ name: Test -on: - push: - branches: [ '*' ] - pull_request: - branches: [ '*' ] +on: ['push', 'pull_request'] jobs: lint: @@ -64,10 +60,12 @@ jobs: texlive-latex-base \ xsltproc - - run: pip install -U pytest + - run: pip install -U pytest coverage + + - run: coverage run -m asciidoc.asciidoc --doctest + - run: coverage run --append --source=asciidoc -m pytest + - run: coverage xml - - run: python -m asciidoc.asciidoc --doctest - - run: python -m pytest - run: time python tests/testasciidoc.py run - run: git clean -x -f doc tests/data @@ -83,6 +81,8 @@ jobs: - run: asciidoc --version - run: asciidoc --filter list + - uses: codecov/codecov-action@v2 + test-windows: needs: lint runs-on: windows-latest |