-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.09 KB
/
sourcery.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
42
43
44
45
46
47
48
name: Sourcery Analysis
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
sourcery:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # Specify the Python version you are using
- name: Install Sourcery
run: |
pip install sourcery-cli
- name: Run Sourcery
env:
SOURCERY_API_TOKEN: ${{ secrets.SOURCERY_API_TOKEN }}
run: |
sourcery review .
- name: Upload Sourcery Review Report
if: always()
uses: actions/upload-artifact@v2
with:
name: sourcery-report
path: sourcery_report.json
- name: Post Comment with Results
if: always()
uses: peter-evans/create-or-update-comment@v2
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
## Sourcery Analysis Results
[View the report](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})