Skip to content

Commit f8f28be

Browse files
committed
Add Sourcery CI workflow
Signed-off-by: Artiom Divak <adivak@redhat.com>
1 parent 29830da commit f8f28be

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/sourcery.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Sourcery Review
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
sourcery:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: '3.11'
16+
17+
- name: Install Sourcery
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install sourcery
21+
22+
- name: Sourcery login
23+
run: |
24+
sourcery login --token ${{ secrets.SOURCERY_TOKEN }}
25+
26+
- name: Run Sourcery review
27+
run: |
28+
sourcery review --check .

0 commit comments

Comments
 (0)