Skip to content

Commit 6a263cf

Browse files
authored
bpo-39041: Add GitHub Actions badge to README.rst (pythonGH-17628)
Also skip build for doc-only changes and enable on push
1 parent a76ba36 commit 6a263cf

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
name: Tests
22

33
on:
4-
#push:
5-
# branches:
6-
# - master
7-
# - 3.8
8-
# - 3.7
9-
# paths-ignore:
10-
# - 'Doc/**'
11-
# - 'Misc/**'
4+
push:
5+
branches:
6+
- master
7+
- 3.8
8+
- 3.7
9+
paths-ignore:
10+
- 'Doc/**'
11+
- 'Misc/**'
12+
- '**/*.md'
13+
- '**/*.rst'
1214
pull_request:
1315
branches:
1416
- master
@@ -17,6 +19,8 @@ on:
1719
paths-ignore:
1820
- 'Doc/**'
1921
- 'Misc/**'
22+
- '**/*.md'
23+
- '**/*.rst'
2024

2125
jobs:
2226
build_win32:

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ This is Python version 3.9.0 alpha 1
55
:alt: CPython build status on Travis CI
66
:target: https://travis-ci.org/python/cpython
77

8+
.. image:: https://github.com/python/cpython/workflows/Tests/badge.svg
9+
:alt: CPython build status on GitHub Actions
10+
:target: https://github.com/python/cpython/actions
11+
812
.. image:: https://dev.azure.com/python/cpython/_apis/build/status/Azure%20Pipelines%20CI?branchName=master
913
:alt: CPython build status on Azure DevOps
1014
:target: https://dev.azure.com/python/cpython/_build/latest?definitionId=4&branchName=master

0 commit comments

Comments
 (0)