Skip to content

Commit 95eb379

Browse files
feat/add-pipeline
1 parent f787f04 commit 95eb379

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI - Argus IA
2+
3+
on:
4+
push:
5+
branches: [ "main", "develop" ]
6+
pull_request:
7+
branches: [ "main", "develop" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout do código
15+
uses: actions/checkout@v3
16+
17+
- name: Configurar Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: "3.10"
21+
22+
- name: Instalar dependências
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements.txt || true
26+
27+
- name: Rodar testes (opcional – se adicionar testes)
28+
run: |
29+
echo "Nenhum teste configurado por enquanto"
30+
continue-on-error: true
31+
32+
- name: Build Docker
33+
uses: docker/setup-buildx-action@v2
34+
35+
- name: Construir imagem Docker
36+
run: |
37+
docker build -t argusia .
38+
39+
- name: Verificar sucesso do build
40+
run: |
41+
echo "Build do Docker finalizado com sucesso!"

0 commit comments

Comments
 (0)