-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 837 Bytes
/
ci.yml
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
33
34
name: Python CI
# Dispara o workflow em eventos como push ou pull request na branch main
on:
push:
branches:
- main
pull_request:
jobs:
test:
# Sistema operacional onde os testes serão executados
runs-on: ubuntu-latest
steps:
# Passo 1: Checkout do código do repositório
- name: Checkout code
uses: actions/checkout@v3
# Passo 2: Configurar o Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12.7' # Versão do Python usada
# Passo 3: Instalar dependências
- name: Install dependencies
run: |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# Passo 4: Rodar testes
- name: Run tests
run: |
python -m unittest discover tests