Restructured project to better run as a package.
This should have been setup correctly, but now try to better follow structure for python modules, which this is supposed to be. - Renamed folder from src -> seasonedParser - Moved test/ into seasonedParser/ - test has __init__.py script which sets location to the project folder (seasonedParser/). - Removed cli.py and moved contents to __main__.py - Updated drone to run pytest without test folder parameter
This commit is contained in:
@@ -13,14 +13,14 @@ steps:
|
||||
commands:
|
||||
- python --version
|
||||
- pip install -r requirements.txt
|
||||
- py.test test
|
||||
- py.test
|
||||
|
||||
- name: test-python3.8
|
||||
image: python:3.8-alpine
|
||||
commands:
|
||||
- python --version
|
||||
- pip install -r requirements.txt
|
||||
- py.test test
|
||||
- py.test
|
||||
|
||||
- name: codecov
|
||||
image: python:3.6-alpine
|
||||
@@ -29,9 +29,7 @@ steps:
|
||||
from_secret: CODECOV_TOKEN
|
||||
commands:
|
||||
- pip install -r requirements.txt
|
||||
- py.test --cov-report=xml --cov=src test
|
||||
- apk add curl
|
||||
- apk add bash
|
||||
- py.test --cov-report=xml --cov=seasonedParserseasonedParserseasonedParserseasonedParserseasonedParserseasonedParserseasonedParserseasonedParser
|
||||
- apk add git
|
||||
- bash -c "$(curl -s https://codecov.io/bash)"
|
||||
trigger:
|
||||
|
||||
Reference in New Issue
Block a user