GHA: optimize test prereq steps

- Linux: move test and pytest prereqs right before test run.
  - returns build phase results faster.
  - allows skipping steps for jobs that don't need them.
  - makes dependencies more transparent.
- sync prereq install step names.
- use `tests/requirements.txt` more.

Closes #15275
This commit is contained in:
Viktor Szakats 2024-10-12 10:45:31 +02:00
parent 75dfb7b649
commit e8a007de0d
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
6 changed files with 92 additions and 74 deletions

View file

@ -222,11 +222,11 @@ jobs:
- name: 'make tests'
run: make -C bld V=1 -C tests
- name: 'pip3 install'
- name: 'make install test prereqs'
run: |
python3 -m venv $HOME/venv
source $HOME/venv/bin/activate
python3 -m pip install impacket
python3 -m pip install -r tests/requirements.txt
- name: 'run tests'
timeout-minutes: 20
@ -380,11 +380,11 @@ jobs:
- name: 'cmake build tests'
run: ninja -C bld testdeps
- name: 'pip3 install'
- name: 'cmake install test prereqs'
run: |
python3 -m venv $HOME/venv
source $HOME/venv/bin/activate
python3 -m pip install impacket
python3 -m pip install -r tests/requirements.txt
- name: 'cmake run tests'
timeout-minutes: ${{ matrix.build.torture && 20 || 10 }}