5
5
pull_request :
6
6
# Run daily at 0:01 UTC
7
7
schedule :
8
- - cron : ' 1 0 * * 0'
8
+ - cron : " 1 0 * * 0"
9
9
10
10
jobs :
11
11
flake8 :
12
12
runs-on : ubuntu-latest
13
13
14
14
steps :
15
- - uses : actions/checkout@v2
16
- - name : Set up Python 3.8
17
- uses : actions/setup-python@v2
18
- with :
19
- python-version : 3.8
20
- - name : Install dependencies
21
- env :
22
- func_adl_servicex_version : 1.0a1
23
- run : |
24
- python -m pip install --upgrade pip setuptools wheel
25
- pip install --no-cache-dir -e .[test]
26
- pip list
27
- - name : Lint with Flake8
28
- if : matrix.python-version == 3.7 && matrix.platform == 'ubuntu-latest'
29
- run : |
30
- flake8 --exclude=tests/* --ignore=E501
31
- - name : Check for vulnerable libraries
32
- if : matrix.python-version == 3.7 && matrix.platform == 'ubuntu-latest'
33
- run : |
34
- pip install safety
35
- pip freeze | safety check
15
+ - uses : actions/checkout@v3
16
+ - name : Set up Python 3.8
17
+ uses : actions/setup-python@v4
18
+ with :
19
+ python-version : 3.8
20
+ - name : Install dependencies
21
+ env :
22
+ func_adl_servicex_version : 1.0a1
23
+ run : |
24
+ python -m pip install --upgrade pip setuptools wheel
25
+ pip install --no-cache-dir -e .[test]
26
+ pip list
27
+ - name : Lint with Flake8
28
+ if : matrix.python-version == 3.7 && matrix.platform == 'ubuntu-latest'
29
+ run : |
30
+ flake8 --exclude=tests/* --ignore=E501
31
+ - name : Check for vulnerable libraries
32
+ if : matrix.python-version == 3.7 && matrix.platform == 'ubuntu-latest'
33
+ run : |
34
+ pip install safety
35
+ pip freeze | safety check
36
36
37
37
test-non-local :
38
38
strategy :
@@ -41,52 +41,52 @@ jobs:
41
41
python-version : [3.9]
42
42
runs-on : ${{ matrix.platform }}
43
43
needs : flake8
44
-
44
+
45
45
steps :
46
- - uses : actions/checkout@v2
47
- - name : Set up Python ${{ matrix.python-version }}
48
- uses : actions/setup-python@v2
49
- with :
50
- python-version : ${{ matrix.python-version }}
51
- - name : Install dependencies
52
- env :
53
- func_adl_servicex_version : 1.0a1
54
- run : |
55
- python -m pip install --upgrade pip setuptools wheel
56
- pip install --no-cache-dir -e .[test]
57
- pip list
58
- - name : Test with pytest
59
- run : |
60
- python -m pytest
46
+ - uses : actions/checkout@v3
47
+ - name : Set up Python ${{ matrix.python-version }}
48
+ uses : actions/setup-python@v4
49
+ with :
50
+ python-version : ${{ matrix.python-version }}
51
+ - name : Install dependencies
52
+ env :
53
+ func_adl_servicex_version : 1.0a1
54
+ run : |
55
+ python -m pip install --upgrade pip setuptools wheel
56
+ pip install --no-cache-dir -e .[test]
57
+ pip list
58
+ - name : Test with pytest
59
+ run : |
60
+ python -m pytest
61
61
62
62
test-local :
63
63
strategy :
64
64
matrix :
65
65
platform : [ubuntu-latest, macOS-latest, windows-latest]
66
- python-version : [3.7, 3.8, 3.9, "3.10"]
66
+ python-version : [3.7, 3.8, 3.9, "3.10", 3.11 ]
67
67
runs-on : ${{ matrix.platform }}
68
68
needs : flake8
69
-
69
+
70
70
steps :
71
- - uses : actions/checkout@v2
72
- - name : Set up Python ${{ matrix.python-version }}
73
- uses : actions/setup-python@v2
74
- with :
75
- python-version : ${{ matrix.python-version }}
76
- - name : Install dependencies
77
- env :
78
- func_adl_servicex_version : 1.0a1
79
- run : |
80
- python -m pip install --upgrade pip setuptools wheel
81
- pip install --no-cache-dir -e .[test,local]
82
- pip list
83
- - name : Test with pytest
84
- run : |
85
- python -m pytest
86
- - name : Report coverage with Codecov
87
- if : github.event_name == 'push' && matrix.python-version == 3.9 && matrix.platform == 'ubuntu-latest'
88
- uses : codecov/codecov-action@v1
89
- with :
90
- token : ${{ secrets.CODECOV_TOKEN }}
91
- file : ./coverage.xml
92
- flags : unittests
71
+ - uses : actions/checkout@v3
72
+ - name : Set up Python ${{ matrix.python-version }}
73
+ uses : actions/setup-python@v4
74
+ with :
75
+ python-version : ${{ matrix.python-version }}
76
+ - name : Install dependencies
77
+ env :
78
+ func_adl_servicex_version : 1.0a1
79
+ run : |
80
+ python -m pip install --upgrade pip setuptools wheel
81
+ pip install --no-cache-dir -e .[test,local]
82
+ pip list
83
+ - name : Test with pytest
84
+ run : |
85
+ python -m pytest
86
+ - name : Report coverage with Codecov
87
+ if : github.event_name == 'push' && matrix.python-version == 3.9 && matrix.platform == 'ubuntu-latest'
88
+ uses : codecov/codecov-action@v3
89
+ with :
90
+ token : ${{ secrets.CODECOV_TOKEN }}
91
+ files : ./coverage.xml
92
+ flags : unittests
0 commit comments