@@ -37,13 +37,21 @@ jobs:
37
37
check-examples :
38
38
name : " π Check Event schema examples"
39
39
runs-on : ubuntu-latest
40
- container : uhoreg/matrix-doc-build
41
40
steps :
42
41
- name : " π₯ Source checkout"
43
42
uses : actions/checkout@v2
43
+ - name : " β Setup Python"
44
+ uses : actions/setup-python@v4
45
+ with :
46
+ python-version : ' 3.9'
47
+ cache : ' pip'
48
+ cache-dependency-path : scripts/requirements.txt
49
+ - name : " β Install dependencies"
50
+ run : |
51
+ pip install -r scripts/requirements.txt
44
52
- name : " π Run validator"
45
53
run : |
46
- /env/bin/ python scripts/check-event-schema-examples.py
54
+ python scripts/check-event-schema-examples.py
47
55
48
56
calculate-baseurl :
49
57
name : " βοΈ Calculate baseURL for later jobs"
@@ -70,15 +78,21 @@ jobs:
70
78
build-openapi :
71
79
name : " π Build OpenAPI definitions"
72
80
runs-on : ubuntu-latest
73
- container : " python:3.9"
74
81
needs : [calculate-baseurl]
75
82
steps :
76
83
- name : " π₯ Source checkout"
77
84
uses : actions/checkout@v2
78
- - name : " π¦ Asset creation"
85
+ - name : " β Setup Python"
86
+ uses : actions/setup-python@v4
87
+ with :
88
+ python-version : ' 3.9'
89
+ cache : ' pip'
90
+ cache-dependency-path : scripts/requirements.txt
91
+ - name : " β Install dependencies"
79
92
run : |
80
- python3 -m venv env && . env/bin/activate
81
93
pip install -r scripts/requirements.txt
94
+ - name : " π¦ Asset creation"
95
+ run : |
82
96
# The output path matches the final deployment path at spec.matrix.org
83
97
scripts/dump-swagger.py \
84
98
--base-url "https://spec.matrix.org${{ needs.calculate-baseurl.outputs.baseURL }}" \
0 commit comments