我有以下一段用于 github 操作的代码:
name: Python application
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: /
python -m pip install --upgrade pip
python -m pip install numpy pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test Selenium
run: /
python -m pytest -v -m devs
Run Code Online (Sandbox Code Playgroud)
但是当我提交并且操作开始运行时,我收到此错误:
Run / python -m pip install --upgrade pip python -m pip install numpy pytest if [ -f requirements.txt …Run Code Online (Sandbox Code Playgroud)