summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Peveler <matt.peveler@gmail.com>2020-06-28 03:20:14 +0300
committerGitHub <noreply@github.com>2020-06-28 03:20:14 +0300
commitbbd7ff51f3de191f13699553a819096d5b62496a (patch)
treedebc8c20412a888ae184aed5c966e025383cf315
parent55a3a927739f20b3771cc8c44b5c35f25c5d463d (diff)
downloadasciidoc-py3-bbd7ff51f3de191f13699553a819096d5b62496a.tar.gz
Migrate from Travis to GitHub action for testing (#126)
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
-rw-r--r--.github/workflows/test.yml76
-rw-r--r--.travis.yml38
-rw-r--r--README.asciidoc2
3 files changed, 64 insertions, 52 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 039fe3f..8586f86 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -13,16 +13,66 @@ jobs:
python-version: 3.6
steps:
- - uses: actions/checkout@v2
-
- - name: Set up Python ${{ matrix.python-version }}
- uses: actions/setup-python@v1
- with:
- python-version: ${{ matrix.python-version }}
-
- - name: Install Dependencies
- run: |
- python3 -m pip install -U pip
- python3 -m pip install -U pytest pytest-runner flake8
- - name: Lint codebase
- run: python3 -m flake8
+ - uses: actions/checkout@v2
+
+ - name: Set up Python ${{ env.python-version }}
+ uses: actions/setup-python@v1
+ with:
+ python-version: ${{ env.python-version }}
+
+ - name: Install Dependencies
+ run: |
+ python3 -m pip install -U pip
+ python3 -m pip install -U pytest pytest-runner flake8
+
+ - name: Lint codebase
+ run: python3 -m flake8
+
+ test:
+ needs: lint
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ python-version: [3.5, 3.6, 3.7, 3.8, 3.9-dev]
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v1
+ if: "!endsWith(matrix.python-version, '-dev')"
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: deadsnakes/action@v1.0.0
+ if: endsWith(matrix.python-version, '-dev')
+ with:
+ python-version: ${{ matrix.python-version }}
+
+ - name: Install apt dependencies
+ run: |
+ sudo apt-get install -y --no-install-recommends \
+ docbook-xml \
+ docbook-xsl \
+ dvipng \
+ graphviz \
+ imagemagick \
+ libxml2-utils \
+ lilypond \
+ source-highlight \
+ texlive-latex-base \
+ xsltproc
+
+ - run: python asciidoc.py --doctest
+ - run: python asciidocapi.py
+ - run: time python tests/testasciidoc.py run
+ - run: git clean -x -f doc tests/data
+
+ - name: Test make install
+ run: |
+ autoconf
+ ./configure
+ make
+ sudo make install
+
+ - run: asciidoc --version
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index c0b6e64..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-language: python
-
-python:
- - 3.5
- - 3.6
- - 3.7
- - 3.8
- - 3.9-dev
-
-jobs:
- allow_failures:
- - python: 3.9-dev
-
-addons:
- apt:
- packages:
- - docbook-xml
- - docbook-xsl
- - dvipng
- - graphviz
- - imagemagick
- - libxml2-utils
- - lilypond
- - source-highlight
- - texlive-latex-base
- - xsltproc
-
-install: true
-
-script:
- - python asciidoc.py --doctest
- - python asciidocapi.py
- - time python tests/testasciidoc.py run
- - git clean -x -f doc tests/data
- - autoconf
- - ./configure
- - make
- - sudo make install
diff --git a/README.asciidoc b/README.asciidoc
index e6f0f46..f459d35 100644
--- a/README.asciidoc
+++ b/README.asciidoc
@@ -2,7 +2,7 @@
AsciiDoc
========
-image:https://travis-ci.com/asciidoc/asciidoc-py3.svg?branch=master["Build Status", link="https://travis-ci.com/asciidoc/asciidoc-py3"]
+image:https://github.com/asciidoc/asciidoc-py3/workflows/Test/badge.svg?branch=master["Build Status", link="https://github.com/asciidoc/asciidoc-py3/actions?query=workflow%3ATest+branch%3Amaster"]
AsciiDoc is a text document format for writing notes, documentation,
articles, books, ebooks, slideshows, web pages, man pages and blogs.