STINNER Victor <vstin...@python.org> added the comment:

> The workaround presented at 
> https://github.community/t5/GitHub-Actions/Feature-request-conditional-required-checks/m-p/51344/highlight/true#M8157
>  seems pretty reasonable. And it seems like travis is alerady doing the same 
> thing as it doesn't have native support to skip runs based on path changes.

I suppose that Steve Dower mentioned the following part of 
.azure-pipelines/prebuild-checks.yml:
----------------
- script: |
   if ! git diff --name-only $(diffTarget) | grep -qvE '(\.rst$|^Doc|^Misc)'
   then
     echo "Only docs were updated: tests.run=false"
     echo "##vso[task.setvariable variable=run;isOutput=true]false"
   else
     echo "Code was updated: tests.run=true"
     echo "##vso[task.setvariable variable=run;isOutput=true]true"
   fi
  displayName: Detect source changes
  name: tests
----------------

I understood that he proposed to port it inside the Windows job of GitHub 
actions (.github/workflows/build.yml).

I propose the following plan:

* Always run GitHub Action jobs
* Make Windows 64-bit job mandatory
* And only then try to skip documentation-only changes

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40548>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to