Fixed the bug in pipeline #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/CD Pipeline | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout código | |
uses: actions/checkout@v2 | |
- name: Configurar ambiente virtual | |
run: | | |
python -m venv .venv | |
source .venv/bin/activate | |
pip install --upgrade pip | |
- name: Gerar e instalar dependências | |
run: | | |
pip freeze > requirements.txt | |
pip install -r requirements.txt | |
- name: Instalar pytest | |
run: | | |
pip install pytest | |
- name: Executar testes | |
run: pytest |