Repository navigation
125 lines (103 loc) · 3.43 KB
/
Copy pathpull_request.yaml
File metadata and controls
125 lines (103 loc) · 3.43 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
name: pull_request
on: [ pull_request ]
jobs:
helm-lint:
name: Run Helm lint Check
runs-on: ubuntu-latest
steps:
- name: Check out TS Project Git repository
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Helm Lint Checks
uses: MapColonies/shared-workflows/actions/helm-lint@helm-lint-v1
openapi-lint:
name: Run OpenAPI lint Check
if: false
runs-on: ubuntu-latest
strategy: &node-strategy
matrix:
node: [ 24.x ]
steps:
- name: Check out TS Project Git repository
uses: actions/checkout@v7
- name: Init Nodejs
uses: MapColonies/shared-workflows/actions/init-npm@init-npm-v1
with:
node-version: ${{ matrix.node }}
- name: Copy Schema
run: npm run copySchema
- name: Lint OpenAPI
run: npx @redocly/cli lint --format=github-actions ./openapi3.yaml
tests:
name: Run Tests
if: false
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 24.x ]
steps:
- name: Check out TS Project Git repository
uses: actions/checkout@v7
- name: Init Nodejs
uses: MapColonies/shared-workflows/actions/init-npm@init-npm-v1
with:
node-version: ${{ matrix.node }}
- name: Run tests
run: npm run test
- uses: actions/upload-artifact@v7
with:
name: Test Reporters ${{ matrix.node }}
path: ./reports/**
python-smoke-check:
name: Python import smoke check
runs-on: ubuntu-latest
steps:
- name: Check out TS Project Git repository
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Compile check (app.py + telemetry/*.py)
run: python -m py_compile src/app.py src/telemetry/*.py
# No system GDAL/GEOS/cairo/pango libs needed here -- MapProxy imports
# fine without them, and this job only needs to prove app.py + telemetry/
# import cleanly, not exercise real tile serving.
- name: Install runtime dependencies
run: |
pip install --no-cache-dir \
"MapProxy==6.0.1" \
"opentelemetry-api" \
"opentelemetry-sdk" \
"opentelemetry-distro" \
"opentelemetry-instrumentation-wsgi" \
"opentelemetry-instrumentation-logging" \
"opentelemetry-instrumentation-redis" \
"opentelemetry-instrumentation-sqlite3" \
"opentelemetry-exporter-otlp-proto-grpc" \
"opentelemetry-exporter-otlp-proto-http" \
"opentelemetry-propagator-b3" \
"opentelemetry-instrumentation-botocore" \
"opentelemetry-instrumentation-requests" \
"opentelemetry-instrumentation-urllib3" \
"opentelemetry-instrumentation-urllib" \
"opentelemetry-instrumentation-sqlalchemy" \
"opentelemetry-instrumentation-psycopg2" \
"psycopg2-binary" \
"boto3" \
"sqlalchemy" \
"redis[hiredis]"
- name: Import check (app.py + telemetry package)
working-directory: src
env:
MAPPROXY_CONFIG: ${{ github.workspace }}/.github/ci/smoke-test-mapproxy.yaml
TELEMETRY_TRACING_ENABLED: "false"
OTEL_TRACE_DEBUG: "false"
OTEL_PYTHON_LOG_CORRELATION: "false"
run: python -c "import app"
build_docker_image:
runs-on: ubuntu-latest
steps:
- name: Build and Push Docker image
uses: docker/build-push-action@v7