我对tox和GitHub actions都很陌生,正在寻找一种简单的方法使它们可以协同工作。我编写了这个简单的工作流程:
name: Python package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v1
- name: Install tox
run: pip install tox
- name: Run tox
run: tox
这个workflow只安装tox并运行它。但是当我运行此workflow时,tox安装正常,但运行命令返回一个错误:
tox: command not found
在 GitHub action 中运行 tox 的正确方法是什么?