forked from rafalp/Misago
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (73 loc) · 2.2 KB
/
appmap-analysis.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
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
name: appmap-analysis
on:
pull_request:
jobs:
record-appmaps:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
group: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18]
services:
postgres:
image: postgres:15
env:
POSTGRES_USER: misago
POSTGRES_PASSWORD: misago
POSTGRES_DB: misago
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install AppMap tools
id: install-appmap
uses: getappmap/install-action@v1
with:
project-type: pip
build-file: "requirements.txt"
- name: Pytest
env:
DJANGO_SETTINGS_MODULE: devproject.test_settings
POSTGRES_DB: misago
POSTGRES_USER: misago
POSTGRES_PASSWORD: misago
POSTGRES_HOST: localhost
run: |
pytest --no-cov --splits 18 --group ${{ matrix.group }}
- name: Set matrix group env var with zero-based numbering
if: always()
env:
NUM: ${{ matrix.group }}
run: |
echo "ARCHIVE_ID=$(($NUM - 1))" >> $GITHUB_ENV
- name: Save AppMap archive
if: always()
uses: getappmap/archive-action@v1
with:
archive-id: ${{ env.ARCHIVE_ID }}
appmap-analysis:
if: always()
runs-on: 4_Core_Runner
needs: [ record-appmaps ]
steps:
- uses: actions/checkout@v3
- name: Install AppMap tools
uses: getappmap/install-action@v1
with:
install-appmap-library: false
- name: Increase HEAP for JS
run: |
echo "NODE_OPTIONS="--max_old_space_size=16384"" >> $GITHUB_ENV
- name: Merge AppMaps
uses: getappmap/archive-action/merge@feat/dont-generate-openapi
with:
revision: ${{ github.event.pull_request.base.sha }}
archive-count: 18
- name: Archive AppMaps
uses: getappmap/archive-action@v1
with:
revision: ${{ github.event.pull_request.base.sha }}