Skip to content

Commit 029aebb

Browse files
authored
Create pytest.yml
1 parent e7db3ca commit 029aebb

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/pytest.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
jobs:
2+
build:
3+
runs-on: ubuntu-latest
4+
strategy:
5+
matrix:
6+
python-version: ["3.12"]
7+
steps:
8+
- uses: actions/checkout@v3
9+
- name: Set up Python ${{ matrix.python-version }}
10+
uses: actions/setup-python@v4
11+
with:
12+
python-version: ${{ matrix.python-version }}
13+
- name: Install dependencies
14+
run: |
15+
python -m pip install --upgrade pip
16+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi;
17+
pip install pytest
18+
- name: Lint with Ruff
19+
run: |
20+
pip install ruff
21+
ruff --format=github --target-version=py310 .
22+
continue-on-error: true
23+
- name: Test with pytest
24+
run: |
25+
coverage run -m pytest -v -s
26+
- name: Generate Coverage Report
27+
run: |
28+
coverage report -m

0 commit comments

Comments
 (0)