19
19
lint :
20
20
runs-on : ubuntu-latest
21
21
steps :
22
- - uses : actions/checkout@v2
23
- - uses : actions/setup-python@v2
22
+ - uses : actions/checkout@v4
23
+ - uses : actions/setup-python@v5
24
+ with :
25
+ python-version : ' 3.12'
24
26
- name : Install Black
25
27
run : |
26
28
pip install black
31
33
build-docs :
32
34
runs-on : ubuntu-latest
33
35
steps :
34
- - uses : actions/checkout@v2
35
- - uses : actions/setup-python@v2
36
+ - uses : actions/checkout@v4
37
+ - uses : actions/setup-python@v5
38
+ with :
39
+ python-version : ' 3.12'
36
40
- name : Install Sphinx
37
41
run : |
38
42
pip install -r docs/requirements.txt
@@ -46,43 +50,32 @@ jobs:
46
50
runs-on : ${{ matrix.os }}
47
51
strategy :
48
52
matrix :
53
+ os : [ubuntu-latest]
54
+ python-version : ['3.8', '3.9', '3.10', '3.11', '3.12']
49
55
include :
50
- - os : ubuntu-latest
51
- python-version : ' 3.7'
52
- job_id : 0
53
- - os : ubuntu-latest
54
- python-version : ' 3.8'
55
- job_id : 1
56
- - os : ubuntu-latest
57
- python-version : ' 3.9'
58
- job_id : 2
59
- - os : ubuntu-latest
60
- python-version : ' 3.10'
61
- job_id : 3
62
56
- os : macos-latest
63
- python-version : ' 3.10'
64
- job_id : 4
57
+ python-version : ' 3.12'
65
58
- os : windows-latest
66
- python-version : ' 3.10'
67
- job_id : 5
59
+ python-version : ' 3.12'
60
+
61
+ env :
62
+ JOB_ID : ${{ strategy.job-index }}
63
+ NUM_JOBS : ${{ strategy.job-total }}
68
64
69
65
steps :
70
- - uses : actions/checkout@v2
66
+ - uses : actions/checkout@v4
71
67
with :
72
68
fetch-depth : 0
73
69
persist-credentials : false
74
70
- name : Setup Python ${{ matrix.python-version }}
75
- uses : actions/setup-python@v2
71
+ uses : actions/setup-python@v5
76
72
with :
77
73
python-version : ${{ matrix.python-version }}
78
74
- name : Determine if downloads are enabled for this job
79
75
# for testing, limit downloads from the resource servers to only the selected job for
80
76
# PRs and the master branch; note that the master branch is tested weekly via `cron`,
81
77
# so this ensures all Python versions will be periodically integration tested with the
82
78
# resource servers
83
- env :
84
- NUM_JOBS : 6
85
- JOB_ID : ${{ matrix.job_id }}
86
79
if : ${{ github.event_name == 'pull_request' || github.ref == 'refs/heads/master' }}
87
80
shell : bash
88
81
run : |
@@ -110,6 +103,7 @@ jobs:
110
103
working-directory : C:\a\lineage\lineage
111
104
run : |
112
105
pytest --cov=lineage tests
113
- - name : Upload coverage to Codecov (Ubuntu & macOS)
114
- if : ${{ matrix.os != 'windows-latest' }}
115
- uses : codecov/codecov-action@v3
106
+ - name : Upload coverage to Codecov
107
+ uses : codecov/codecov-action@v4.1.0
108
+ with :
109
+ token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments