File tree Expand file tree Collapse file tree 2 files changed +23
-9
lines changed Expand file tree Collapse file tree 2 files changed +23
-9
lines changed Original file line number Diff line number Diff line change 1
1
# Summary of Change
2
- Jira issue: https://jira.intuit.com/browse/SKIP-XXXX
3
2
4
3
<Your Summary Goes Here >
5
4
6
5
## Before Review
7
- - [ ] Jira Story In Description/Body
8
6
- [ ] Unit Tests are Added/Updated and meet at-least 85% coverage criteria for that feature
9
7
10
8
## Before Merge
Original file line number Diff line number Diff line change 1
1
name : CI Workflow
2
+ permissions :
3
+ pull-requests : write
2
4
3
5
on :
4
6
push :
@@ -10,21 +12,35 @@ jobs:
10
12
runs-on : ubuntu-latest
11
13
12
14
steps :
13
- - uses : actions/checkout@v3
15
+ - uses : actions/checkout@v4
14
16
- name : Install poetry
15
17
run : pipx install poetry
16
18
- name : Set up Python
17
- uses : actions/setup-python@v4
19
+ uses : actions/setup-python@v5
18
20
with :
19
- python-version : " 3.11 "
21
+ python-version : " 3.12 "
20
22
cache : ' poetry'
21
23
- name : Install Dependencies
22
24
run : |
23
25
pip install --upgrade pip
24
26
pip install --upgrade setuptools
25
- poetry env use "3.11 "
27
+ poetry env use "3.12 "
26
28
poetry install
27
- - name : Run Lints
29
+ - name : Setup reviewdog
30
+ uses : reviewdog/action-setup@v1
31
+ - name : Run black
32
+ env :
33
+ REVIEWDOG_GITHUB_API_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
34
run : |
29
- poetry run black nodestream_akamai --check
30
- poetry run isort nodestream_akamai --check-only
35
+ poetry run black nodestream_github tests --check --diff --quiet | reviewdog -f=diff -name="black-check" -level=error -reporter=github-pr-review
36
+ - name : Run isort
37
+ run : |
38
+ poetry run isort nodestream_github tests --check-only
39
+ - name : Run Lint
40
+ env :
41
+ REVIEWDOG_GITHUB_API_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
+ run : |
43
+ poetry run ruff check nodestream_github tests --output-format rdjson | reviewdog -f=rdjson -name="ruff-check" -level=warning -reporter=github-pr-review
44
+ - name : Run Tests
45
+ run : |
46
+ poetry run pytest
You can’t perform that action at this time.
0 commit comments