Skip to content

Commit 3e1f6b6

Browse files
author
Halvani
committed
..
1 parent 35c439c commit 3e1f6b6

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3-
41
name: Python package
52

63
on:
@@ -20,21 +17,26 @@ jobs:
2017

2118
steps:
2219
- uses: actions/checkout@v4
20+
2321
- name: Set up Python ${{ matrix.python-version }}
2422
uses: actions/setup-python@v3
2523
with:
2624
python-version: ${{ matrix.python-version }}
25+
2726
- name: Install dependencies
2827
run: |
2928
python -m pip install --upgrade pip
3029
python -m pip install flake8 pytest
30+
31+
pip install .
32+
3133
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
34+
3235
- name: Lint with flake8
3336
run: |
34-
# stop the build if there are Python syntax errors or undefined names
3537
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
36-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3738
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
39+
3840
- name: Test with pytest
3941
run: |
4042
pytest

0 commit comments

Comments
 (0)