mirror of
https://github.com/curl/curl.git
synced 2026-08-24 09:13:33 +03:00
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:
parent
75dfb7b649
commit
e8a007de0d
6 changed files with 92 additions and 74 deletions
8
.github/workflows/macos.yml
vendored
8
.github/workflows/macos.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue