Skip to content

Commit 0d2b38a

Browse files
committed
2 parents 3b887fe + c9beb9e commit 0d2b38a

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Python application
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Python 3.11.9
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: "3.11.9"
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements.txt
26+
pip install flake8 pytest
27+
- name: Lint with flake8
28+
run: |
29+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
30+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
31+
- name: Test with pytest
32+
run: |
33+
pytest

0 commit comments

Comments
 (0)