Skip to content

Commit 18c63db

Browse files
committed
adding CI
1 parent b640cf0 commit 18c63db

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)