]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39041: Add GitHub Actions badge to README.rst (GH-17628)
authorSteve Dower <steve.dower@python.org>
Mon, 16 Dec 2019 19:15:08 +0000 (11:15 -0800)
committerGitHub <noreply@github.com>
Mon, 16 Dec 2019 19:15:08 +0000 (11:15 -0800)
Also skip build for doc-only changes and enable on push

.github/workflows/build.yml
README.rst

index 16d6f0db8c908f7fa5d6df4944c4ac02aead43cf..7f13cfbc1ff4ed75182ddea724b8310a03ca0030 100644 (file)
@@ -1,14 +1,16 @@
 name: Tests
 
 on:
-  #push:
-  #  branches:
-  #  - master
-  #  - 3.8
-  #  - 3.7
-  #  paths-ignore:
-  #  - 'Doc/**'
-  #  - 'Misc/**'
+  push:
+    branches:
+    - master
+    - 3.8
+    - 3.7
+    paths-ignore:
+    - 'Doc/**'
+    - 'Misc/**'
+    - '**/*.md'
+    - '**/*.rst'
   pull_request:
     branches:
     - master
@@ -17,6 +19,8 @@ on:
     paths-ignore:
     - 'Doc/**'
     - 'Misc/**'
+    - '**/*.md'
+    - '**/*.rst'
 
 jobs:
   build_win32:
index 62dd0fd4e94503dd7373572a52dd4f3da3106ce2..43f619792925c9cf3c34ef5ead6b1327df97dee6 100644 (file)
@@ -5,6 +5,10 @@ This is Python version 3.9.0 alpha 1
    :alt: CPython build status on Travis CI
    :target: https://travis-ci.org/python/cpython
 
+.. image:: https://github.com/python/cpython/workflows/Tests/badge.svg
+   :alt: CPython build status on GitHub Actions
+   :target: https://github.com/python/cpython/actions
+
 .. image:: https://dev.azure.com/python/cpython/_apis/build/status/Azure%20Pipelines%20CI?branchName=master
    :alt: CPython build status on Azure DevOps
    :target: https://dev.azure.com/python/cpython/_build/latest?definitionId=4&branchName=master