【发布时间】:2020-11-25 17:42:24
【问题描述】:
当项目中任何地方的任何 python 文件(.py 文件)发生更改时,我怎样才能有一个运行 pytest 的 github 操作?这个项目包含不同语言的混合,如果 python 文件在项目中的某个位置(在项目中任何级别的任何目录中)发生更改,我只想运行 pytest。
name: Test Python Tests
on:
push:
paths:
- what to put here????
jobs:
build-and-run:
steps:
- uses: actions/checkout@v1
- name: Update Conda environment with "requirements.yml"
uses: matthewrmshin/conda-action@v1
with:
args: conda env update -f ./requirements.yml
- name: Run "pytest" with the Conda environment
uses: matthewrmshin/conda-action@v1
with:
args: pytest
【问题讨论】:
标签: python github continuous-integration pytest github-actions