Skip to content

Commit b6fac9e

Browse files
DevMacDevMac
authored andcommitted
ci(workflows): add CI and tag-based CD validation
1 parent 0a24e21 commit b6fac9e

2 files changed

Lines changed: 51 additions & 0 deletions

File tree

.github/workflows/cd.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CD
2+
on:
3+
workflow_dispatch:
4+
push:
5+
tags:
6+
- 'v*'
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: '22'
15+
cache: npm
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.11'
19+
- run: npm ci
20+
- run: npm test
21+
- run: npm run build
22+
- run: python -m pip install --upgrade pip
23+
- run: pip install -e '.[dev]' || pip install -r requirements.txt
24+
- run: pytest -q
25+
- run: echo "CD ready: artefato validado em tag/manual trigger"

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
on:
3+
push:
4+
pull_request:
5+
jobs:
6+
node:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-node@v4
11+
with:
12+
node-version: '22'
13+
cache: npm
14+
- run: npm ci
15+
- run: npm test
16+
- run: npm run build
17+
python:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.11'
24+
- run: python -m pip install --upgrade pip
25+
- run: pip install -e '.[dev]' || pip install -r requirements.txt
26+
- run: pytest -q

0 commit comments

Comments
 (0)