File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9999 POSTGRES_DB : fiml_test
100100 POSTGRES_USER : fiml_test
101101 POSTGRES_PASSWORD : fiml_test_password
102- REDIS_HOST : localhost
103102 REDIS_PORT : 6379
104103 AZURE_OPENAI_ENDPOINT : https://mock-azure-openai.openai.azure.com/
105104 AZURE_OPENAI_API_KEY : mock-api-key-for-testing
Original file line number Diff line number Diff line change 9595 POSTGRES_DB : fiml_test
9696 POSTGRES_USER : fiml_test
9797 POSTGRES_PASSWORD : fiml_test_password
98- REDIS_HOST : localhost
9998 REDIS_PORT : 6379
10099 AZURE_OPENAI_ENDPOINT : https://mock-azure-openai.openai.azure.com/
101100 AZURE_OPENAI_API_KEY : mock-api-key-for-testing
Original file line number Diff line number Diff line change @@ -110,7 +110,6 @@ jobs:
110110 POSTGRES_DB : fiml_test
111111 POSTGRES_USER : fiml_test
112112 POSTGRES_PASSWORD : fiml_test_password
113- REDIS_HOST : localhost
114113 REDIS_PORT : 6379
115114 AZURE_OPENAI_ENDPOINT : https://mock-azure-openai.openai.azure.com/
116115 AZURE_OPENAI_API_KEY : mock-api-key-for-testing
Original file line number Diff line number Diff line change 8787 POSTGRES_DB : fiml_test
8888 POSTGRES_USER : fiml_test
8989 POSTGRES_PASSWORD : fiml_test_password
90- REDIS_HOST : localhost
9190 REDIS_PORT : 6379
9291 AZURE_OPENAI_ENDPOINT : https://mock-azure-openai.openai.azure.com/
9392 AZURE_OPENAI_API_KEY : mock-api-key-for-testing
Original file line number Diff line number Diff line change 9898 POSTGRES_DB : fiml_test
9999 POSTGRES_USER : fiml_test
100100 POSTGRES_PASSWORD : fiml_test_password
101- REDIS_HOST : localhost
102101 REDIS_PORT : 6379
103102 AZURE_OPENAI_ENDPOINT : https://mock-azure-openai.openai.azure.com/
104103 AZURE_OPENAI_API_KEY : mock-api-key-for-testing
Original file line number Diff line number Diff line change 1+ import yaml
2+ import glob
3+ import sys
4+
5+ files = glob .glob (".github/workflows/*.yml" )
6+ has_error = False
7+
8+ for file in files :
9+ try :
10+ with open (file , 'r' ) as f :
11+ yaml .safe_load (f )
12+ print (f"✅ { file } is valid YAML" )
13+ except Exception as e :
14+ print (f"❌ { file } has invalid YAML: { e } " )
15+ has_error = True
16+
17+ if has_error :
18+ sys .exit (1 )
You can’t perform that action at this time.
0 commit comments