Skip to content

Commit

Permalink
Feature/evp skeleton fix pipeline (#40)
Browse files Browse the repository at this point in the history
* add pipfile.lock, make pipenv install verbose

Signed-off-by: Lucca Baumgärtner <[email protected]>

* enable caching pipenv deps in pipeline

Signed-off-by: Lucca Baumgärtner <[email protected]>

* check if moving the test file fixes it

Signed-off-by: Lucca Baumgärtner <[email protected]>

* add __init__.py to tests folder

Signed-off-by: Lucca Baumgärtner <[email protected]>

* refactor test

Signed-off-by: Lucca Baumgärtner <[email protected]>

* refactor test

Signed-off-by: Lucca Baumgärtner <[email protected]>

* add all dev deps to Pipfile

Signed-off-by: Lucca Baumgärtner <[email protected]>

* add all dev deps to Pipfile

Signed-off-by: Lucca Baumgärtner <[email protected]>

* add all dev deps to Pipfile

Signed-off-by: Lucca Baumgärtner <[email protected]>

* minor changes to pipeline

Signed-off-by: Lucca Baumgärtner <[email protected]>

* minor changes to pipeline

Signed-off-by: Lucca Baumgärtner <[email protected]>

---------

Signed-off-by: Lucca Baumgärtner <[email protected]>
  • Loading branch information
luccalb authored Nov 3, 2023
1 parent 498cdab commit ab02c96
Show file tree
Hide file tree
Showing 5 changed files with 531 additions and 8 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,24 +46,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest pipenv
pip install pipenv
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pipenv install
pipenv install --dev
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
pipenv run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
pipenv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pipenv run pytest
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pids
# Python
*.pyc
__pycache__/
Pipfile.lock
# Pipfile.lock

# Jupyter Notebook
.ipynb_checkpoints
Expand Down
4 changes: 3 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ verify_ssl = true
name = "pypi"

[dev-packages]
pytest = "==7.4.3"
pytest = "*"
pre-commit = "*"
flake8 = "*"

[packages]
numpy = "==1.26.1"
Expand Down
Loading

0 comments on commit ab02c96

Please sign in to comment.