Skip to content

Commit 7870f2c

Browse files
committed
added git runner
1 parent 8cab51b commit 7870f2c

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Python application
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up Python 3.10.7
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: "3.10.7"
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -r requirements.txt
24+
pip install .
25+
- name: Test with pytest
26+
run: |
27+
cd tests
28+
coverage run --branch -m pytest --disable-pytest-warnings .
29+
coverage report -m --show-missing

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pytest
2+
coverage

0 commit comments

Comments
 (0)