File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Python Test and Lint
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' *'
7
+ pull_request :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ test :
13
+ name : Python Test and Lint
14
+ runs-on : ubuntu-latest
15
+
16
+ strategy :
17
+ matrix :
18
+ python-version :
19
+ - ' 3.9'
20
+ - ' 3.10'
21
+ - ' 3.11'
22
+ - ' 3.12'
23
+
24
+ steps :
25
+ - name : Checkout code
26
+ uses : actions/checkout@v4
27
+
28
+ - name : Set up Python ${{ matrix.python-version }}
29
+ uses : actions/setup-python@v4
30
+ with :
31
+ python-version : ${{ matrix.python-version }}
32
+
33
+ - name : Install Poetry
34
+ run : |
35
+ curl -sSL https://install.python-poetry.org | python3 -
36
+
37
+ - name : Install dependencies
38
+ run : poetry install
39
+
40
+ - name : Run pytest
41
+ run : poetry run pytest
42
+
43
+ - name : Run ruff
44
+ run : poetry run ruff check --output-format=github
45
+ continue-on-error : true
You can’t perform that action at this time.
0 commit comments