File: test.yml

package info (click to toggle)
taskw 2.0.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 576 kB
  • sloc: python: 2,699; makefile: 4
file content (44 lines) | stat: -rw-r--r-- 1,358 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Run Tests
on:
  push:
    branches: ["develop"]
  pull_request:
    branches: ["develop"]
jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: [3.5, 3.6, 3.7, 3.8]
        taskwarrior-version: [2.5.0, 2.5.1, 2.5.3]
        exclude:
          # Taskwarriror 3.5.3 only supported on Python 3.7+.
          - python-version: 3.5
            taskwarrior-version: 2.5.3
          - python-version: 3.6
            taskwarrior-version: 2.5.3
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{matrix.python-version}}
      uses: actions/setup-python@v2
      with:
        python-version: ${{matrix.python-version}}
    - name: Install Taskwarrior ${{matrix.taskwarrior-version}}
      run: |
        sudo apt-get install -y python-dev cmake build-essential libgnutls28-dev uuid-dev gnutls-bin chrpath libssl-dev libfontconfig1-dev
        git clone https://github.com/GothenburgBitFactory/taskwarrior.git
        cd taskwarrior
        git checkout v${{matrix.taskwarrior-version}}
        cmake .
        make
        sudo make install
        task --version
        cd ../
    - name: Install Dependencies
      run: |
        python -m pip install --upgrade pip setuptools
        python setup.py install
        python -m pip install pytest
    - name: Run Tests
      run: |
        pytest