From: Marc Foley Date: Mon, 3 Mar 2025 14:39:23 +0000 (+0000) Subject: designers.yaml: move logic from test.yaml X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9133%2Fhead;p=thirdparty%2Fgoogle%2Ffonts.git designers.yaml: move logic from test.yaml --- diff --git a/.ci/run.py b/.ci/run.py index 3acc3939d..3b95137c6 100644 --- a/.ci/run.py +++ b/.ci/run.py @@ -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 index 000000000..865746cf9 --- /dev/null +++ b/.github/workflows/designers.yaml @@ -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