taskwiki/.github/workflows/tests.yaml
Tomas Janousek 8e69ea52fb tests: Update test matrix (varying versions of vim, vimwiki, python)
(taskwarrior 2.5.2 branch fails a few tests, will investigate later)
2020-08-02 17:24:20 -04:00

54 lines
1.8 KiB
YAML

name: tests
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- _defaults: # see Dockerfile for variable defaults
- TASK_VERSION: v2.4.4
- TASK_VERSION: 2.5.2
continue-on-error: true
- TASK_VERSION: 2.6.0
- VIM_VERSION: v7.4.1546
- VIM_VERSION: v8.0.0027
- VIM_VERSION: v8.1.0519
- VIMWIKI_VERSION: dev
- PYTHON_VERSION: 3.5
- PYTHON_VERSION: 3.6
- PYTHON_VERSION: 3.7
continue-on-error: ${{ matrix.continue-on-error == true }}
steps:
- uses: actions/checkout@v2
- name: Prepare docker image
run: |
docker-compose build \
${ALPINE_VERSION:+--build-arg ALPINE_VERSION="$ALPINE_VERSION"} \
${PYTHON_VERSION:+--build-arg PYTHON_VERSION="$PYTHON_VERSION"} \
${TASK_VERSION:+--build-arg TASK_VERSION="$TASK_VERSION"} \
${VIM_VERSION:+--build-arg VIM_VERSION="$VIM_VERSION"} \
${VIMWIKI_VERSION:+--build-arg VIMWIKI_VERSION="$VIMWIKI_VERSION"} \
tests
env:
ALPINE_VERSION: ${{ matrix.ALPINE_VERSION }}
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
TASK_VERSION: ${{ matrix.TASK_VERSION }}
VIM_VERSION: ${{ matrix.VIM_VERSION }}
VIMWIKI_VERSION: ${{ matrix.VIMWIKI_VERSION }}
- name: Test
run: make test PYTEST_FLAGS="-n8"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_PARALLEL: true
coveralls-finished:
needs: tests
runs-on: ubuntu-latest
steps:
- name: Finished
uses: coverallsapp/github-action@v1.1.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true