@@ -81,41 +81,12 @@ jobs:
8181 - name : Custom Environment Setup
8282 run : |
8383 ./scripts/github/setup-environment.sh
84- - name : ' Set up Python (${{ matrix.python-version }})'
85- uses : actions/setup-python@v5
84+ - name : ' Set up Python (${{ matrix.python-version }}) and Cache Deps '
85+ uses : ./.github/ actions/setup-python
8686 with :
8787 python-version : ' ${{ matrix.python-version }}'
88- - name : Cache Python Dependencies
89- uses : actions/cache@v4
90- with :
91- path : |
92- ~/.cache/pip
93- virtualenv
94- ~/virtualenv
95- # TODO: maybe make the virtualenv a partial cache to exclude st2*?
96- # !virtualenv/lib/python*/site-packages/st2*
97- # !virtualenv/bin/st2*
98- key : ${{ runner.os }}-v5-python-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'test-requirements.txt', 'lockfiles/*.lock') }}
99- # Don't use alternative key as if requirements.txt has altered we
100- # don't want to retrieve previous cache
101- # restore-keys: |
102- # ${{ runner.os }}-v5-python-${{ matrix.python }}-
103- - name : Cache APT Dependencies
104- id : cache-apt-deps
105- uses : actions/cache@v4
106- with :
107- path : |
108- ~/apt_cache
109- key : ${{ runner.os }}-v8-apt-${{ hashFiles('scripts/github/apt-packages.txt') }}
110- restore-keys : |
111- ${{ runner.os }}-v8-apt-
112- - name : Install APT Depedencies
113- env :
114- CACHE_HIT : ${{steps.cache-apt-deps.outputs.cache-hit}}
115- run : |
116- # install dev dependencies for Python YAML and LDAP packages
117- # https://github.com/StackStorm/st2-auth-ldap
118- ./scripts/github/install-apt-packages-use-cache.sh
88+ - name : Cache and Install APT Dependencies
89+ uses : ./.github/actions/apt-packages
11990 - name : Install virtualenv
12091 run : |
12192 ./scripts/github/install-virtualenv.sh
@@ -180,40 +151,12 @@ jobs:
180151 - name : Custom Environment Setup
181152 run : |
182153 ./scripts/github/setup-environment.sh
183- - name : ' Set up Python (${{ matrix.python-version }})'
184- uses : actions/setup-python@v5
154+ - name : ' Set up Python (${{ matrix.python-version }}) and Cache Deps '
155+ uses : ./.github/ actions/setup-python
185156 with :
186157 python-version : ' ${{ matrix.python-version }}'
187- - name : Cache Python Dependencies
188- uses : actions/cache@v4
189- with :
190- path : |
191- ~/.cache/pip
192- virtualenv
193- ~/virtualenv
194- # TODO: maybe make the virtualenv a partial cache to exclude st2*?
195- # !virtualenv/lib/python*/site-packages/st2*
196- # !virtualenv/bin/st2*
197- key : ${{ runner.os }}-v5-python-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'test-requirements.txt', 'lockfiles/*.lock') }}
198- restore-keys : |
199- ${{ runner.os }}-python-${{ matrix.python }}-
200- - name : Cache APT Dependencies
201- id : cache-apt-deps
202- uses : actions/cache@v4
203- with :
204- path : |
205- ~/apt_cache
206- key : ${{ runner.os }}-v8-apt-${{ hashFiles('scripts/github/apt-packages.txt') }}
207- restore-keys : |
208- ${{ runner.os }}-v8-apt-
209- - name : Install APT Depedencies
210- env :
211- CACHE_HIT : ${{steps.cache-apt-deps.outputs.cache-hit}}
212- run : |
213- cat /etc/environment
214- # install dev dependencies for Python YAML and LDAP packages
215- # https://github.com/StackStorm/st2-auth-ldap
216- ./scripts/github/install-apt-packages-use-cache.sh
158+ - name : Cache and Install APT Dependencies
159+ uses : ./.github/actions/apt-packages
217160 - name : Install virtualenv
218161 run : |
219162 ./scripts/github/install-virtualenv.sh
@@ -384,41 +327,12 @@ jobs:
384327 - name : Custom Environment Setup
385328 run : |
386329 ./scripts/github/setup-environment.sh
387- - name : ' Set up Python (${{ matrix.python-version }})'
388- uses : actions/setup-python@v5
330+ - name : ' Set up Python (${{ matrix.python-version }}) and Cache Deps '
331+ uses : ./.github/ actions/setup-python
389332 with :
390333 python-version : ' ${{ matrix.python-version }}'
391- - name : Cache Python Dependencies
392- uses : actions/cache@v4
393- with :
394- path : |
395- ~/.cache/pip
396- virtualenv
397- ~/virtualenv
398- # TODO: maybe make the virtualenv a partial cache to exclude st2*?
399- # !virtualenv/lib/python*/site-packages/st2*
400- # !virtualenv/bin/st2*
401- key : ${{ runner.os }}-v5-python-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'test-requirements.txt', 'lockfiles/*.lock') }}
402- # Don't use alternative key as if requirements.txt has altered we
403- # don't want to retrieve previous cache
404- # restore-keys: |
405- # ${{ runner.os }}-v5-python-${{ matrix.python }}-
406- - name : Cache APT Dependencies
407- id : cache-apt-deps
408- uses : actions/cache@v4
409- with :
410- path : |
411- ~/apt_cache
412- key : ${{ runner.os }}-v8-apt-${{ hashFiles('scripts/github/apt-packages.txt') }}
413- restore-keys : |
414- ${{ runner.os }}-v8-apt-
415- - name : Install APT Depedencies
416- env :
417- CACHE_HIT : ${{steps.cache-apt-deps.outputs.cache-hit}}
418- run : |
419- # install dev dependencies for Python YAML and LDAP packages
420- # https://github.com/StackStorm/st2-auth-ldap
421- ./scripts/github/install-apt-packages-use-cache.sh
334+ - name : Cache and Install APT Dependencies
335+ uses : ./.github/actions/apt-packages
422336 - name : Install virtualenv
423337 run : |
424338 ./scripts/github/install-virtualenv.sh
@@ -604,41 +518,12 @@ jobs:
604518 - name : Custom Environment Setup
605519 run : |
606520 ./scripts/github/setup-environment.sh
607- - name : ' Set up Python (${{ matrix.python-version }})'
608- uses : actions/setup-python@v5
521+ - name : ' Set up Python (${{ matrix.python-version }}) and Cache Deps '
522+ uses : ./.github/ actions/setup-python
609523 with :
610524 python-version : ' ${{ matrix.python-version }}'
611- - name : Cache Python Dependencies
612- uses : actions/cache@v4
613- with :
614- path : |
615- ~/.cache/pip
616- virtualenv
617- ~/virtualenv
618- # TODO: maybe make the virtualenv a partial cache to exclude st2*?
619- # !virtualenv/lib/python*/site-packages/st2*
620- # !virtualenv/bin/st2*
621- key : ${{ runner.os }}-v5-python-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'test-requirements.txt', 'lockfiles/*.lock') }}
622- # Don't use alternative key as if requirements.txt has altered we
623- # don't want to retrieve previous cache
624- # restore-keys: |
625- # ${{ runner.os }}-v5-python-${{ matrix.python }}-
626- - name : Cache APT Dependencies
627- id : cache-apt-deps
628- uses : actions/cache@v4
629- with :
630- path : |
631- ~/apt_cache
632- key : ${{ runner.os }}-v8-apt-${{ hashFiles('scripts/github/apt-packages.txt') }}
633- restore-keys : |
634- ${{ runner.os }}-v8-apt-
635- - name : Install APT Depedencies
636- env :
637- CACHE_HIT : ${{steps.cache-apt-deps.outputs.cache-hit}}
638- run : |
639- # install dev dependencies for Python YAML and LDAP packages
640- # https://github.com/StackStorm/st2-auth-ldap
641- ./scripts/github/install-apt-packages-use-cache.sh
525+ - name : Cache and Install APT Dependencies
526+ uses : ./.github/actions/apt-packages
642527 - name : Install virtualenv
643528 run : |
644529 ./scripts/github/install-virtualenv.sh
@@ -709,6 +594,7 @@ jobs:
709594 if : always()
710595 needs :
711596 - lint-checks
597+ - self-check
712598 - unit-tests
713599 - integration-tests
714600 runs-on : ubuntu-20.04
0 commit comments