Skip to content

Commit

Permalink
Configurando o CI
Browse files Browse the repository at this point in the history
close #36
  • Loading branch information
aurohm committed May 18, 2022
1 parent b8400c6 commit 36a9a7e
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions .github/workflows/libpythonproCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit 36a9a7e

Please sign in to comment.