]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
designers.yaml: move logic from test.yaml 9133/head
authorMarc Foley <m.foley.88@gmail.com>
Mon, 3 Mar 2025 14:39:23 +0000 (14:39 +0000)
committerMarc Foley <m.foley.88@gmail.com>
Mon, 3 Mar 2025 15:38:25 +0000 (15:38 +0000)
.ci/run.py
.github/workflows/designers.yaml [new file with mode: 0644]

index 3acc3939d72897ec8268ce57e2667e9c39fec6b9..3b95137c685f1258d3636b7d6c0783da3101cb51 100644 (file)
@@ -66,7 +66,7 @@ def main():
 
         elif check_type == CheckType.DESIGNER:
             print(f"Checking designer profile: {directory}")
-            subprocess.run(["pytest", profile_test_file, directory])
+            subprocess.run(["pytest", profile_test_file, directory], check=True)
 
         else:
             print(f"Skipping directory {directory}")
diff --git a/.github/workflows/designers.yaml b/.github/workflows/designers.yaml
new file mode 100644 (file)
index 0000000..865746c
--- /dev/null
@@ -0,0 +1,27 @@
+name: Check Designer profiles
+
+on:
+  pull_request:
+    paths:
+    - 'catalog/designers/*/*'
+
+jobs:
+  test_designer_profiles:
+    runs-on: ubuntu-22.04
+    steps:
+    - uses: actions/checkout@v1
+    - name: Set up Python
+      uses: actions/setup-python@v4
+      with:
+        python-version: "3.10"
+      
+    - name: Install dependencies
+      run: pip install gftools[qa] pytest
+    - name: Check designer profiles
+      run: |
+        python3 .ci/run.py --pr-number $PR_NUMBER --pr-url-body https://www.github.com/google/fonts/pull/
+      env:
+        PYTHONIOENCODING: 'utf-8'
+        PYTHONUTF8: '1'
+        GH_TOKEN: ${{ github.token }}
+        PR_NUMBER: ${{ github.event.number }}
\ No newline at end of file