@@ -59,31 +59,10 @@ jobs:
59
59
allure-python-commons: allure-python-commons/**
60
60
allure-python-commons-test: allure-python-commons-test/**
61
61
62
- commons :
63
- name : Build commons
64
- runs-on : ubuntu-latest
65
- needs : [pytest-changes, other-changes]
66
- if : ${{ needs.pytest-changes.outputs.changed == 'true' || needs.other-changes.outputs.packages != '[]' }}
67
- steps :
68
- - uses : actions/checkout@v4
69
-
70
- - name : Cache commons
71
- id : commons
72
- uses : actions/cache@v4
73
- with :
74
- path : dist/
75
- key : commons-${{ github.sha }}
76
-
77
- - name : Build python commons
78
- if : steps.commons.outputs.cache-hit != 'true'
79
- run : pip install build &&
80
- python -m build allure-python-commons --outdir dist/ &&
81
- python -m build allure-python-commons-test --outdir dist/
82
-
83
62
lint :
84
63
name : Static check
85
64
runs-on : ubuntu-latest
86
- needs : [commons, pytest-changes, other-changes]
65
+ needs : [pytest-changes, other-changes]
87
66
if : ${{ needs.pytest-changes.outputs.changed == 'true' || needs.other-changes.outputs.packages != '[]' }}
88
67
steps :
89
68
- uses : actions/checkout@v4
102
81
test-pytest :
103
82
name : Test allure-pytest
104
83
runs-on : ubuntu-latest
105
- needs : [commons, pytest-changes]
84
+ needs : [pytest-changes]
106
85
if : ${{ needs.pytest-changes.outputs.changed == 'true' }}
107
86
strategy :
108
87
matrix :
@@ -122,16 +101,10 @@ jobs:
122
101
with :
123
102
python-version : ${{ matrix.python-version }}
124
103
125
- - name : Get commons from cache
126
- id : commons
127
- uses : actions/cache@v4
128
- with :
129
- path : dist/
130
- key : commons-${{ github.sha }}
131
-
132
104
- name : Install packages
133
105
run : |
134
- pip install dist/allure-python-commons*.tar.gz \
106
+ pip install ./allure-python-commons \
107
+ ./allure-python-commons-test \
135
108
./allure-pytest \
136
109
pytest==${{ matrix.pytest-version }} \
137
110
-r ./requirements/testing.txt \
@@ -142,9 +115,9 @@ jobs:
142
115
run : poe tests
143
116
144
117
test-others :
145
- name : Test packages other than allure-pytest
118
+ name : Test other packages
146
119
runs-on : ubuntu-latest
147
- needs : [commons, other-changes]
120
+ needs : [other-changes]
148
121
if : ${{ needs.other-changes.outputs.packages != '[]' }}
149
122
strategy :
150
123
matrix :
@@ -163,18 +136,13 @@ jobs:
163
136
with :
164
137
python-version : ${{ matrix.python-version }}
165
138
166
- - name : Get commons from cache
167
- id : commons
168
- uses : actions/cache@v4
169
- with :
170
- path : dist/
171
- key : commons-${{ github.sha }}
172
-
173
139
- name : Install packages
174
- run : pip install dist/allure-python-commons*.tar.gz &&
175
- pip install ./${{ matrix.package }} &&
176
- pip install -r ./requirements/testing.txt &&
177
- pip install -r ./requirements/testing/${{ matrix.package }}.txt
140
+ run : |
141
+ pip install ./allure-python-commons \
142
+ ./allure-python-commons-test \
143
+ ./${{ matrix.package }} \
144
+ -r ./requirements/testing.txt \
145
+ -r ./requirements/testing/${{ matrix.package }}.txt
178
146
179
147
- name : Test ${{ matrix.package }}
180
148
working-directory : ${{ matrix.package }}
0 commit comments