Skip to content

Usando make test no CI #2

Usando make test no CI

Usando make test no CI #2

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
lint:
strategy:
fail-fast: true
matrix:
python-version: ['3.12']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Project Dependencies
run: |
pip install -r requirements.txt
pip install -r requirements.test.txt
- name: Debug Installed Packages
run: pip freeze
- name: Run flake8
run: flake8 .
- name: Run isort
run: isort --profile=black --check --diff .
- name: Run black
run: black --check --diff .
test:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install Dependencies
run: |
pip install -r requirements.txt
pip install -r requirements.test.txt
- name: Run Tests
run: |
make test