I am new to tox and GitHub actions, and I am looking for a simple way to make them work together. I wrote this simple workflow:
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
which just installs tox and then runs it. But when I run this workflow, the tox installation works fine, but the run command returns an error:
tox: command not found
What is the correct way to run tox from a GitHub action?