File tree Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Lint and Test
2
+ on :
3
+ pull_request :
4
+ push :
5
+ branches : [main]
6
+ jobs :
7
+ lint :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/checkout@v4
11
+ - uses : actions/setup-python@v5
12
+ with :
13
+ python-version : 3.12
14
+ -
uses :
pre-commit/[email protected]
15
+ test :
16
+ runs-on : ${{ matrix.os }}
17
+ strategy :
18
+ matrix :
19
+ os : [ubuntu-latest]
20
+ python-version : ["3.12"]
21
+ steps :
22
+ - uses : actions/checkout@v4
23
+ - name : Set up Python
24
+ uses : actions/setup-python@v5
25
+ with :
26
+ python-version : ${{ matrix.python-version }}
27
+ - name : Run image
28
+ uses : abatilo/actions-poetry@v2
29
+ - name : Install dependencies
30
+ run : poetry install --with=dev
31
+ - name : Run tests
32
+ run : poetry run pytest
Original file line number Diff line number Diff line change 1
1
name : release
2
2
on :
3
3
workflow_run :
4
- workflows : [pre-commit, pytest ]
4
+ workflows : [Lint and Test ]
5
5
types : [completed]
6
6
jobs :
7
7
release :
You can’t perform that action at this time.
0 commit comments