From 98f24eb6fe5ebaddd305a78a4d0de8927822f5ac Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Sat, 18 Dec 2021 11:47:25 -0500 Subject: Add make test to CI workflow Signed-off-by: Matthew Peveler --- .github/workflows/test.yml | 66 ++++++++++++++++++++++++++++++++++------------ 1 file changed, 49 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4b71ec2..6b2cd2b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -68,23 +68,6 @@ jobs: - run: coverage xml - run: time python tests/testasciidoc.py run - - run: git clean -x -f doc tests/data - - - name: Configure make - run: | - autoconf - ./configure - - - run: make install - - run: sudo make docs - - - name: Print versions - run: | - asciidoc --version - a2x --version - - - run: asciidoc --version - - run: asciidoc --filter list - uses: codecov/codecov-action@v2 @@ -104,3 +87,52 @@ jobs: - run: python -m asciidoc.asciidoc --doctest - run: python tests/testasciidoc.py run --number 6 + + make: + needs: lint + runs-on: ubuntu-latest + env: + python-version: 3.5 + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python ${{ env.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install apt dependencies + run: | + sudo apt-get install -y --no-install-recommends \ + docbook-xml \ + docbook-xsl \ + dvipng \ + dvisvgm \ + graphviz \ + imagemagick \ + libxml2-utils \ + lilypond \ + source-highlight \ + texlive-latex-base \ + xsltproc + + - run: pip install -U pytest pytest-mock + + - name: Configure make + run: | + autoconf + ./configure + + - run: make test + + - run: make install + - run: sudo make docs + + - name: Print versions + run: | + asciidoc --version + a2x --version + + - run: asciidoc --version + - run: asciidoc --filter list -- cgit v1.2.1