File: python-tests-compatibility.yml

package info (click to toggle)
python-pyodata 1.11.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,280 kB
  • sloc: python: 7,170; xml: 947; makefile: 69; sh: 15
file content (88 lines) | stat: -rw-r--r-- 2,666 bytes parent folder | download
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# This workflow will install Python dependencies, run tests with variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: test the package

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]
  schedule: 
    - cron: '0 0 * * SUN'    

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        python-version: ["3.9", "3.10", "3.11", "3.12"]
        lxml-version: ["4.2.6", "4.3.5", "4.4.3", "4.5.2", "4.6.5", "4.7.1", "4.8.0", "4.9.1", "4.9.4", "5.0.1", "5.1.0"]
        exclude:
          - python-version: 3.9
            lxml-version: 4.2.6
          - python-version: 3.10
            lxml-version: 4.2.6
          - python-version: 3.10
            lxml-version: 4.3.5
          - python-version: 3.10
            lxml-version: 4.4.3
          - python-version: 3.10
            lxml-version: 4.5.2
          - python-version: 3.11
            lxml-version: 4.2.6
          - python-version: 3.11
            lxml-version: 4.3.5
          - python-version: 3.11
            lxml-version: 4.4.3
          - python-version: 3.11
            lxml-version: 4.5.2
          - python-version: 3.11
            lxml-version: 4.6.5
          - python-version: 3.11
            lxml-version: 4.7.1  
          - python-version: 3.11
            lxml-version: 4.8.0 
          - python-version: 3.12
            lxml-version: 4.2.6
          - python-version: 3.12
            lxml-version: 4.3.5           
          - python-version: 3.12
            lxml-version: 4.4.3
          - python-version: 3.12
            lxml-version: 4.4.3          
          - python-version: 3.12
            lxml-version: 4.5.2
          - python-version: 3.12
            lxml-version: 4.6.5
          - python-version: 3.12
            lxml-version: 4.7.1  
          - python-version: 3.12
            lxml-version: 4.8.0  
          - python-version: 3.12
            lxml-version: 4.9.1


    steps:
    - uses: actions/checkout@v2

    - name: Install lxml dependencies
      run: sudo apt-get install -y libxml2-dev libxslt-dev

    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}

    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        python -m pip install lxml==${{ matrix.lxml-version }}
        python -m pip install -r dev-requirements.txt
        python -m pip install -r requirements.txt

    - name: Test
      run: |
        make test report-coverage