@@ -273,8 +273,12 @@ jobs:
273
273
sudo apt-get update -y
274
274
sudo apt-get install libtool autoconf automake ninja-build pkgconf stunnel4 libpsl-dev libbrotli-dev libzstd-dev \
275
275
${{ matrix.build.install_packages }}
276
- sudo python3 -m pip install impacket
277
- name : ' install prereqs and impacket'
276
+ name : ' install prereqs'
277
+
278
+ - if : contains(matrix.build.install_steps, 'pytest')
279
+ run : |
280
+ sudo apt-get install apache2 apache2-dev libnghttp2-dev vsftpd
281
+ name : ' install prereqs for pytest'
278
282
279
283
- if : startsWith(matrix.build.container, 'alpine')
280
284
run : |
@@ -549,38 +553,6 @@ jobs:
549
553
printenv >> $GITHUB_ENV
550
554
name : ' install Intel compilers'
551
555
552
- - if : contains(matrix.build.install_steps, 'pytest')
553
- run : |
554
- sudo apt-get install apache2 apache2-dev libnghttp2-dev vsftpd
555
- sudo python3 -m pip install -r tests/http/requirements.txt
556
- name : ' install pytest and apach2-dev'
557
-
558
- - name : cache mod_h2
559
- if : contains(matrix.build.install_steps, 'pytest')
560
- uses : actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4
561
- id : cache-mod_h2
562
- env :
563
- cache-name : cache-mod_h2
564
- with :
565
- path : /home/runner/mod_h2
566
- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.mod_h2-version }}
567
-
568
- - name : ' build mod_h2'
569
- if : contains(matrix.build.install_steps, 'pytest') && steps.cache-mod_h2.outputs.cache-hit != 'true'
570
- run : |
571
- cd $HOME
572
- git clone --quiet --depth=1 -b v${{ env.mod_h2-version }} https://github.com/icing/mod_h2
573
- cd mod_h2
574
- autoreconf -fi
575
- ./configure
576
- make
577
-
578
- - name : ' install mod_h2'
579
- if : contains(matrix.build.install_steps, 'pytest')
580
- run : |
581
- cd $HOME/mod_h2
582
- sudo make install
583
-
584
556
- run : autoreconf -fi
585
557
if : ${{ matrix.build.configure }}
586
558
name : ' autoreconf'
@@ -652,6 +624,11 @@ jobs:
652
624
make V=1 -C tests
653
625
fi
654
626
627
+ - name : ' install test prereqs'
628
+ if : ${{ matrix.build.install_steps != 'skipall' && !startsWith(matrix.build.container, 'alpine') && matrix.build.container == null }}
629
+ run : |
630
+ sudo python3 -m pip install -r tests/requirements.txt
631
+
655
632
- name : ' run tests'
656
633
if : ${{ matrix.build.install_steps != 'skipall' && matrix.build.install_steps != 'skiprun' }}
657
634
timeout-minutes : ${{ contains(matrix.build.install_packages, 'valgrind') && 30 || 15 }}
@@ -669,6 +646,37 @@ jobs:
669
646
make V=1 test-ci
670
647
fi
671
648
649
+ - name : ' install pytest prereqs'
650
+ if : contains(matrix.build.install_steps, 'pytest')
651
+ run : |
652
+ sudo python3 -m pip install -r tests/http/requirements.txt
653
+
654
+ - name : cache mod_h2
655
+ if : contains(matrix.build.install_steps, 'pytest')
656
+ uses : actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4
657
+ id : cache-mod_h2
658
+ env :
659
+ cache-name : cache-mod_h2
660
+ with :
661
+ path : /home/runner/mod_h2
662
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.mod_h2-version }}
663
+
664
+ - name : ' build mod_h2'
665
+ if : contains(matrix.build.install_steps, 'pytest') && steps.cache-mod_h2.outputs.cache-hit != 'true'
666
+ run : |
667
+ cd $HOME
668
+ git clone --quiet --depth=1 -b v${{ env.mod_h2-version }} https://github.com/icing/mod_h2
669
+ cd mod_h2
670
+ autoreconf -fi
671
+ ./configure
672
+ make
673
+
674
+ - name : ' install mod_h2'
675
+ if : contains(matrix.build.install_steps, 'pytest')
676
+ run : |
677
+ cd $HOME/mod_h2
678
+ sudo make install
679
+
672
680
- name : ' run pytest'
673
681
if : contains(matrix.build.install_steps, 'pytest')
674
682
env :
0 commit comments