Skip to content

Commit

Permalink
github: Add Continutous integration GitHub Actions workflow
Browse files Browse the repository at this point in the history
It includes a lint job that checks for the presence of a Change Log
fragment in a pull request.
  • Loading branch information
tjanez committed Dec 20, 2019
1 parent f81393d commit c8b606a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
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

0 comments on commit c8b606a

Please sign in to comment.