Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Build Status

on:
push:
branches: [ develop ]
branches: [ develop, prod ]
pull_request:
branches: [ develop ]
branches: [ develop, prod ]

jobs:
build:
Expand All @@ -28,12 +28,13 @@ jobs:
pip install flake8 pytest-cov coveralls
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

# - 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
# # 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
- name: Lint with flake8
if: github.event_name == 'pull_request'
run: |
# stop the build if there are Python syntax errors or undefined names
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

- name: Test with pytest-cov
run: |
Expand Down
1 change: 1 addition & 0 deletions tests/test_aero_calculator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pytest
import math
import logging
from frispy.model import Model
from frispy.discs import Discs
from frispy.aero_calculator import calculate_aero_coefficients
Expand Down