Usando make test no CI #2
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
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 |