Skip to content

Commit a3c713b

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

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/sourcery.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
- uses: actions/setup-python@v5
13+
with:
14+
python-version: '3.11'
15+
16+
- name: Install Sourcery
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install sourcery
20+
21+
- name: Sourcery login
22+
run: |
23+
sourcery login --token ${{ secrets.SOURCERY_TOKEN }}
24+
25+
- name: Run Sourcery review
26+
run: |
27+
sourcery review --check

0 commit comments

Comments
 (0)