5959 allure-python-commons: allure-python-commons/**
6060 allure-python-commons-test: allure-python-commons-test/**
6161
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-
8362 lint :
8463 name : Static check
8564 runs-on : ubuntu-latest
10281 test-pytest :
10382 name : Test allure-pytest
10483 runs-on : ubuntu-latest
105- needs : [commons, pytest-changes]
84+ needs : [pytest-changes]
10685 if : ${{ needs.pytest-changes.outputs.changed == 'true' }}
10786 strategy :
10887 matrix :
@@ -122,21 +101,10 @@ jobs:
122101 with :
123102 python-version : ${{ matrix.python-version }}
124103
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- fail-on-cache-miss : true
132-
133- - name : Check restored cache
134- run : |
135- ls dist
136-
137104 - name : Install packages
138105 run : |
139- pip install dist/allure_python_commons*.tar.gz \
106+ pip install ./allure-python-commons \
107+ ./allure-python-commons-test \
140108 ./allure-pytest \
141109 pytest==${{ matrix.pytest-version }} \
142110 -r ./requirements/testing.txt \
@@ -149,7 +117,7 @@ jobs:
149117 test-others :
150118 name : Test packages other than allure-pytest
151119 runs-on : ubuntu-latest
152- needs : [commons, other-changes]
120+ needs : [other-changes]
153121 if : ${{ needs.other-changes.outputs.packages != '[]' }}
154122 strategy :
155123 matrix :
@@ -168,21 +136,10 @@ jobs:
168136 with :
169137 python-version : ${{ matrix.python-version }}
170138
171- - name : Get commons from cache
172- id : commons
173- uses : actions/cache@v4
174- with :
175- path : dist/
176- key : commons-${{ github.sha }}
177- fail-on-cache-miss : true
178-
179- - name : Check restored cache
180- run : |
181- ls dist
182-
183139 - name : Install packages
184140 run : |
185- pip install dist/allure_python_commons*.tar.gz \
141+ pip install ./allure-python-commons \
142+ ./allure-python-commons-test \
186143 ./${{ matrix.package }} \
187144 -r ./requirements/testing.txt \
188145 -r ./requirements/testing/${{ matrix.package }}.txt
0 commit comments