[Python-checkins] bpo-39041: Add GitHub Actions badge to README.rst (GH-17628)

Steve Dower webhook-mailer at python.org
Mon Dec 16 14:15:15 EST 2019


https://github.com/python/cpython/commit/6a263cf1adfc18cdba65c788dd76d35997a89acf
commit: 6a263cf1adfc18cdba65c788dd76d35997a89acf
branch: master
author: Steve Dower <steve.dower at python.org>
committer: GitHub <noreply at github.com>
date: 2019-12-16T11:15:08-08:00
summary:

bpo-39041: Add GitHub Actions badge to README.rst (GH-17628)

Also skip build for doc-only changes and enable on push

files:
M .github/workflows/build.yml
M README.rst

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 16d6f0db8c908..7f13cfbc1ff4e 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -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:
diff --git a/README.rst b/README.rst
index 62dd0fd4e9450..43f619792925c 100644
--- a/README.rst
+++ b/README.rst
@@ -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



More information about the Python-checkins mailing list