-
Notifications
You must be signed in to change notification settings - Fork 5
93 lines (79 loc) · 2.51 KB
/
Copy pathtest.yml
File metadata and controls
93 lines (79 loc) · 2.51 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: Test and Coverage
on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '45 2 * * 5'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# --- GO SECTION ---
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
- name: Test Go
run: go test -v -coverprofile=coverage-go.out ./...
working-directory: ./apps/backend
- name: Upload Go Coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./apps/backend/coverage-go.out
flags: backend
fail_ci_if_error: true
# --- TYPESCRIPT SECTION ---
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install Node Dependencies
run: npm ci
working-directory: ./apps/frontend
- name: Test TypeScript
run: npm test -- --coverage
working-directory: ./apps/frontend
- name: Upload TS Coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./apps/frontend/coverage/lcov.info
flags: frontend
fail_ci_if_error: true
# --- PYTHON SECTION ---
- name: Free Disk Space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false # Keep this false to preserve Python/Node/Go tools
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Python Dependencies
run: pip install -r requirements.txt pytest pytest-cov
working-directory: ./apps/ingestion-worker
- name: Test Python
env:
PYTHONPATH: .
run: |
pip install --no-cache-dir -r requirements.txt
pytest --cov=./ --cov-report=xml:coverage-python.xml
working-directory: ./apps/ingestion-worker
- name: Upload Python Coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./apps/ingestion-worker/coverage-python.xml
flags: ingestion-worker
fail_ci_if_error: true