chore: run_install_deps.sh 脚本中的内容移入workflow yaml, 降低安全风险

This commit is contained in:
voidking 2024-07-24 20:07:28 +08:00
parent 9685c9100c
commit abfb8f2c21
2 changed files with 8 additions and 2 deletions

View file

@ -30,7 +30,10 @@ jobs:
cache: 'pip'
- name: Install dependencies
run: |
sh tests/scripts/run_install_deps.sh
- python -m pip install --upgrade pip
- pip install -e .[test]
- npm install -g @mermaid-js/mermaid-cli
- playwright install --with-deps
- name: Run reverse proxy script for ssh service
if: contains(github.ref, '-debugger')
continue-on-error: true

View file

@ -27,7 +27,10 @@ jobs:
cache: 'pip'
- name: Install dependencies
run: |
sh tests/scripts/run_install_deps.sh
- python -m pip install --upgrade pip
- pip install -e .[test]
- npm install -g @mermaid-js/mermaid-cli
- playwright install --with-deps
- name: Test with pytest
run: |
export ALLOW_OPENAI_API_CALL=0