-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
close #36
- Loading branch information
Showing
1 changed file
with
9 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,25 +11,15 @@ jobs: | |
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9.0' | ||
- name: Install dependencies | ||
- name: cp contrib/env-sample .env | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements-dev.txt | ||
pip install pytest-cov | ||
- name: Lint with flake8 | ||
cp contrib/env-sample .evn | ||
- name: Install dependencies | ||
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 | ||
python3 -m pip install --upgrade pip | ||
pip install pipenv | ||
pipenv install codecov | ||
pipenv sync -d | ||
pipenv install --deploy --dev | ||
- name: Test with pytest | ||
run: pytest libpythonproVelton --cov=libpythonproVelton | ||
- name: Relatório Codecov | ||
env: | ||
CODECOV_TOKEN= '712dabeb-b2b7-4924-8202-9636769b8fac' | ||
run: | | ||
codecov | ||
run: | | ||
pip install pytest-cov | ||
- name: Codecov | ||
uses: codecov/[email protected] |