Adicionado requirements.txt gerado por "poetry export" #661
Workflow file for this run
This file contains hidden or 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
| # This workflow will install Python dependencies, run tests and lint with a single version of Python | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
| name: deploy | |
| on: push | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install poetry | |
| poetry install | |
| - name: Lint with flake8 | |
| run: | | |
| poetry run flake8 . | |
| - name: Test with pytest | |
| run: | | |
| poetry run pytest libpythonpro --cov=libpythonpro | |
| - name: Posting Coverage | |
| env: | |
| CODECOV_TOKEN: "843d0e48-24be-4fe6-b002-2178212cd800" | |
| run: | | |
| pip install codecov | |
| poetry run codecov |