Skip to content

Commit

Permalink
First attempt at GitHub CI.
Browse files Browse the repository at this point in the history
Add .flake8 config file, we may use flake8 for linting.
We'd have to do a big code reformat for this to be done
for keepsies.

Add .github/workflows/drawdown.yml to run pytest and upload
to codecov.io.
  • Loading branch information
DentonGentry committed Sep 19, 2019
1 parent c8caf31 commit 1da3048
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[flake8]
ignore =
# one blank line before docstring
D203,
E128, E126
exclude = .git,__pycache__,voila
max-complexity = 10
28 changes: 28 additions & 0 deletions .github/workflows/drawdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Drawdown Python application

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
pip install pytest
pytest -v --cov=. --cov-report term --cov-report=xml --strict-markers
- name: Export to codecov.io
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage.xml

0 comments on commit 1da3048

Please sign in to comment.