File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Run Python tests
2+
3+ on : [ push ]
4+
5+ jobs :
6+ build :
7+
8+ name : Run tests
9+ runs-on : ubuntu-latest
10+ strategy :
11+ matrix :
12+ python-version : ["3.11", "3.x"]
13+
14+
15+ steps :
16+ - uses : actions/checkout@v3
17+
18+ - name : Set up Python ${{ matrix.python-version }}
19+ uses : actions/setup-python@v4
20+ with :
21+ python-version : ${{ matrix.python-version }}
22+
23+ - name : Install dependencies
24+ run : |
25+ python -m pip install -U pip
26+ python -m pip install -U coverage pytest pytest-cov poetry
27+ python -m poetry install
28+ python -m poetry self add poetry-plugin-export
29+ python -m poetry export -f requirements.txt --output requirements.txt
30+ python -m pip install -r requirements.txt
31+
32+ - name : Lint with Ruff
33+ run : |
34+ python -m pip install -U ruff
35+ ruff --per-file-ignores="__init__.py:F401" --per-file-ignores="__init__.py:E402" .
36+ continue-on-error : true
37+
38+ - name : Test with pytest
39+ run : |
40+ coverage run -m pytest -v -s
41+
42+ - name : Generate Coverage Report
43+ run : |
44+ coverage report -m
45+
You can’t perform that action at this time.
0 commit comments