Skip to content

Commit

Permalink
Broaden Continuous Integration Workflow (#52)
Browse files Browse the repository at this point in the history
* broaden scope of CI and calc coverage

* add python 3.10 to ci
  • Loading branch information
elbeejay authored Nov 14, 2022
1 parent 0d172cc commit f10dc03
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ name: Python package

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8]
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.6, 3.7, 3.8, 3.9, '3.10']

steps:
- uses: actions/checkout@v2
Expand All @@ -26,16 +26,16 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -r requirements-dev.txt
- 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: Test with pytest
- name: Test with pytest and report coverage
run: |
cd tests
pytest
coverage run -m pytest
coverage report -m
cd ..
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,6 @@ ENV/

# mypy
.mypy_cache/

# macOS
*.DS_Store
8 changes: 8 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
numpy
pandas
python-dateutil
requests
requests-mock
coverage
pytest
flake8
12 changes: 4 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
coverage==5.0
numpy>=1.19.1
pandas>=1.1.1
python-dateutil==2.8.1
pytest==3.5.0
requests>=2.20.0
requests-mock==1.7.0
Sphinx==3.3.1
numpy
pandas
python-dateutil
requests

0 comments on commit f10dc03

Please sign in to comment.