File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-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.8'
20+ - ' 3.9'
21+ - ' 3.10'
22+ - ' 3.11'
23+ - ' 3.12'
24+
25+ steps :
26+ - name : Checkout code
27+ uses : actions/checkout@v4
28+
29+ - name : Set up Python ${{ matrix.python-version }}
30+ uses : actions/setup-python@v4
31+ with :
32+ python-version : ${{ matrix.python-version }}
33+
34+ - name : Install Poetry
35+ run : |
36+ curl -sSL https://install.python-poetry.org | python3 -
37+
38+ - name : Install dependencies
39+ run : poetry install
40+
41+ - name : Run pytest
42+ run : poetry run pytest
43+
44+ - name : Run ruff
45+ run : poetry run ruff check --output-format=github
46+ continue-on-error : true
You can’t perform that action at this time.
0 commit comments