-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (40 loc) · 982 Bytes
/
pr.yaml
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
42
43
44
45
46
47
---
name: Pull Request
on:
pull_request:
branches:
- main
- 'v*'
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/cache@v4
with:
path: |
./__pypackages__
key: ${{ runner.os }}-python-${{ hashFiles('**/pdm.lock') }}
- name: Install dependencies
run: ./pw pdm install -G :all
- name: Generate
run: ./pw generate
- name: Format
run: ./pw format
- name: Generate changelog
run: ./pw changelog
- name: Check repo status
run: |-
REPO_STATUS="$(git status --porcelain)"
if [[ ! -z $REPO_STATUS ]]; then
echo "::error::Uncommitted changes detected"
echo "$REPO_STATUS"
git status -vv
exit 1
fi
- name: Test
run: ./pw test