Skip to content

Merge pull request #6 from brenofranca83/main #20

Merge pull request #6 from brenofranca83/main

Merge pull request #6 from brenofranca83/main #20

Workflow file for this run

name: build
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- run: poetry install --no-root
- name: Analysing the code with isort
run: poetry run isort --check --diff .
- name: Analysing the code with flake8
run: poetry run flake8
- name: Analysing the code with black
run: poetry run black --check --diff --color .
- name: Analysing the code with prospector
run: poetry run prospector --no-autodetect
- name: Testing
run: |
poetry run coverage run --source . --module pytest
poetry run coverage report --show-missing
poetry run coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3