-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 972 Bytes
/
Copy pathpython-app.yml
File metadata and controls
32 lines (26 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#o arquivo .yml serve para:
#- Configuração de aplicações:
#(Exemplo: docker-compose.yml define serviços Docker, pytest usa .yml para parametrizar testes.)
#- Integração contínua / DevOps:
#GitHub Actions, GitLab CI, CircleCI usam arquivos .yml para descrever pipelines de build, teste e deploy.
#- Armazenamento de dados:
#Pode substituir arquivos JSON ou XML quando se quer mais legibilidade.
name: App Python para Testar GitHub Action
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest # sistema operacional onde o job será executado
#etapas que o GitHub action irá executar
steps:
- uses: actions/checkout@v2
- name: Set up / Configurar Python 3.12.3
uses: actions/setup-python@v5
with:
python-version: '3.12.3'
- name: Instala as dependências
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Executar testes com Pytest
run: |
pytest