Skip to content

Commit

Permalink
chore: adding github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rehmanis committed Feb 21, 2021
1 parent 10b2a1d commit f4480db
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 5 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Shopyo testing workflow
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.6', '3.7', '3.8' ]
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Run pytests and generate coverage report
run: |
pip install -U pip
pip install -r requirements.txt -r dev_requirements.txt
sphinx-build -b html sphinx_source docs
cd shopyo
echo 'Running Tests....'
coverage run --branch --source . -m pytest
coverage report
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1



2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ before_install:
- python --version
- pip install -U pip
install:
- pip install -r requirement.txt -r dev_requirements.txt
- pip install -r requirements.txt -r dev_requirements.txt
script:
- sphinx-build -b html sphinx_source docs
- cd shopyo
Expand Down
12 changes: 8 additions & 4 deletions .codecov.yml → codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ codecov:

coverage:
precision: 2
round: down
range: "70...100"
round: up
range: "65...100"
status:
project:
default:
threshold: 0.1%

parsers:
gcov:
Expand All @@ -13,8 +17,8 @@ parsers:
loop: yes
method: no
macro: no
base: "parent"

comment:
layout: "reach,diff,flags,files,footer"
behavior: default
require_changes: no
require_changes: no

0 comments on commit f4480db

Please sign in to comment.