-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.44 KB
/
pr_qa.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This is a basic workflow to help you get started with Actions
name: Pull Request Quality Checks
# Controls when the workflow will run
on:
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
name: PR checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
- name: Quality Checks
run: |
python -m pip install --upgrade pip;
make install-lock
make build;
make qa;
##
## NOTE:
## The below checks for a file named .version-change-type that is used to automatically increment the version number during publish flows.
## It also checks for changes in a file called RELEASENOTES.md that are used to auto-maintain a rolling CHANGELOG.
## This is commented out for now until we finalize what the publish/release flow will look like.
##
# changeType=$(<.version-change-type)
# if [ -z "$changeType" ];
# then
# echo "missing file .version-change-type!"
# exit 1
# fi
# echo "Checking for release notes..."
# git fetch origin main ${{ github.event.pull_request.base.sha }};
# diff=$(git diff -U0 ${{ github.event.pull_request.base.sha }} ${{ github.sha }} RELEASENOTES.md);
# if [ -z "$diff" ]; then echo "Missing release notes! exiting..."; exit 1; fi