6
6
# Run daily at 0:01 UTC
7
7
schedule :
8
8
- cron : " 1 0 * * *"
9
+ workflow_dispatch :
9
10
10
11
jobs :
11
12
flake8 :
12
13
runs-on : ubuntu-latest
13
14
14
15
steps :
15
- - uses : actions/checkout@master
16
+ - uses : actions/checkout@v3
16
17
- name : Set up Python
17
- uses : actions/setup-python@v1
18
+ uses : actions/setup-python@v4
18
19
with :
19
- python-version : 3.8
20
+ python-version : " 3.11 "
20
21
- name : Install dependencies
21
22
env :
22
23
servicex_version : 1.0a1
23
24
run : |
24
25
python -m pip install --upgrade pip setuptools wheel
25
- pip install --no-cache-dir -e .[test]
26
- pip list
26
+ python -m pip install --no-cache-dir -e .[test]
27
+ python -m pip list
27
28
- name : Lint with Flake8
28
29
run : |
29
30
flake8 --exclude=tests/* --ignore=E501,W503
30
31
- name : Check for vulnerable libraries
31
32
run : |
32
- pip install safety
33
- pip freeze | safety check
33
+ python -m pip install safety
34
+ python -m pip freeze | safety check
34
35
35
36
test :
36
37
needs :
@@ -43,29 +44,29 @@ jobs:
43
44
runs-on : ${{ matrix.platform }}
44
45
45
46
steps :
46
- - uses : actions/checkout@master
47
+ - uses : actions/checkout@v3
47
48
- name : Set up Python ${{ matrix.python-version }}
48
- uses : actions/setup-python@v1
49
+ uses : actions/setup-python@v4
49
50
with :
50
51
python-version : ${{ matrix.python-version }}
51
52
- name : Install dependencies
52
53
env :
53
54
servicex_version : 1.0a1
54
55
run : |
55
56
python -m pip install --upgrade pip setuptools wheel
56
- pip install --no-cache-dir -e .[test]
57
- pip list
57
+ python -m pip install --no-cache-dir -e .[test]
58
+ python -m pip list
58
59
- name : Test with pytest
59
60
run : |
60
61
python -m pytest
61
62
- name : Code coverage with pytest
62
- if : github.event_name == 'push' && matrix.python-version == 3.7 && matrix. platform == 'ubuntu-latest'
63
+ if : github.event_name == 'push' && matrix.platform == 'ubuntu-latest'
63
64
run : |
64
65
python -m pytest --ignore=setup.py --cov=servicex --cov-report=term-missing --cov-config=.coveragerc --cov-report xml
65
66
- name : Report coverage with Codecov
66
- if : github.event_name == 'push' && matrix.python-version == 3.7 && matrix. platform == 'ubuntu-latest'
67
- uses : codecov/codecov-action@v1
67
+ if : github.event_name == 'push' && matrix.platform == 'ubuntu-latest'
68
+ uses : codecov/codecov-action@v3
68
69
with :
69
70
token : ${{ secrets.CODECOV_TOKEN }}
70
71
file : ./coverage.xml # optional
71
- flags : unittests # optional
72
+ flags : unittests-${{ matrix.python-version }} # optional
0 commit comments