-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github: Add Continutous integration GitHub Actions workflow
It includes a lint job that checks for the presence of a Change Log fragment in a pull request.
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Continuous integration | ||
|
||
on: push | ||
|
||
jobs: | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Set up Python 3 | ||
uses: actions/setup-python@v1 | ||
- name: Install prerequisites | ||
run: | | ||
python -m pip install https://github.com/oasislabs/towncrier/archive/oasis-master.tar.gz | ||
- name: Check for presence of a Change Log fragment | ||
run: | | ||
# Fetch the master branch so towncrier will be able to compare the | ||
# current branch to the master branch. | ||
# Source: https://github.com/actions/checkout/#fetch-all-branches. | ||
git fetch --no-tags --prune --depth=1 origin +refs/heads/master:refs/remotes/origin/master | ||
towncrier check |