3
3
push :
4
4
branches :
5
5
- " main"
6
- tags :
7
- - " v[0-9]+.[0-9]+.[0-9]+"
8
6
pull_request :
9
7
branches : [ main ]
10
8
jobs :
11
9
fossa-scan :
12
10
continue-on-error : true
13
11
runs-on : ubuntu-latest
14
12
steps :
15
- - uses : actions/checkout@v4
13
+ - uses : actions/checkout@v5
16
14
- run : |
17
15
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
18
16
fossa analyze --debug
@@ -30,24 +28,24 @@ jobs:
30
28
pre-commit :
31
29
runs-on : ubuntu-latest
32
30
steps :
33
- - uses : actions/checkout@v4
31
+ - uses : actions/checkout@v5
34
32
- uses : actions/setup-python@v5
35
33
with :
36
34
python-version : " 3.12"
37
35
-
uses :
pre-commit/[email protected]
38
36
39
37
test-unit :
40
- runs-on : ubuntu-22.04
38
+ runs-on : ubuntu-latest
41
39
strategy :
42
40
matrix :
43
- python-version : [ 3.7, 3.8, 3. 9, "3.10", "3.11", "3.12" ]
41
+ python-version : [ 3.9, "3.10", "3.11", "3.12" ]
44
42
steps :
45
- - uses : actions/checkout@v4
43
+ - uses : actions/checkout@v5
46
44
- uses : actions/setup-python@v5
47
45
with :
48
46
python-version : ${{ matrix.python-version }}
49
47
- run : |
50
- curl -sSL https://install.python-poetry.org | python3 - --version 1.5.1
48
+ curl -sSL https://install.python-poetry.org | python3 - --version 2.1.4
51
49
poetry install
52
50
poetry run pytest --junitxml=test-results/junit.xml
53
51
- uses : actions/upload-artifact@v4
@@ -59,26 +57,26 @@ jobs:
59
57
compliance-copyrights :
60
58
runs-on : ubuntu-latest
61
59
steps :
62
- - uses : actions/checkout@v4
63
- - uses : apache/skywalking-eyes@v0.6 .0
60
+ - uses : actions/checkout@v5
61
+ - uses : apache/skywalking-eyes@v0.7 .0
64
62
65
63
publish :
66
64
needs :
67
65
- fossa-scan
68
66
- compliance-copyrights
69
67
- pre-commit
70
68
- test-unit
71
- runs-on : ubuntu-22.04
69
+ runs-on : ubuntu-latest
72
70
73
71
steps :
74
- - uses : actions/checkout@v4
72
+ - uses : actions/checkout@v5
75
73
with :
76
74
# Very important: semantic-release won't trigger a tagged
77
75
# build if this is not set false
78
76
persist-credentials : false
79
77
- uses : actions/setup-python@v5
80
78
with :
81
- python-version : " 3.7 "
79
+ python-version : " 3.9 "
82
80
- run : |
83
81
curl -sSL https://install.python-poetry.org | python3 - --version 1.5.1
84
82
poetry install
0 commit comments