From b7d993a8275c800fcce163712d9700776180196f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Schoentgen?= Date: Sun, 22 Oct 2023 11:04:40 +0200 Subject: [PATCH] ci: Fail the daily on missing template --- .github/workflows/daily.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index e9bfc2a5d..f5a48affa 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -15,11 +15,13 @@ jobs: steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.x" - uses: actions/cache@v3 id: cache @@ -29,11 +31,11 @@ jobs: - name: Install requirements if: steps.cache.outputs.cache-hit != 'true' - run: python -m pip install -r requirements.txt + # run: python -m pip install -r requirements.txt daily: runs-on: ubuntu-latest - needs: [warmup] + # needs: [warmup] strategy: fail-fast: false @@ -49,16 +51,18 @@ jobs: - "no" - "pt" - "ro" - - "ru" + # - "ru" - "sv" steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.x" - uses: actions/cache@v3 id: cache @@ -71,4 +75,9 @@ jobs: run: python -Wd -m wikidict ${{ matrix.locale }} --get-word='' - name: Check that random word + id: check-word run: python -Wd -m wikidict ${{ matrix.locale }} --check-word=${{ steps.get-word.outputs.word }} + + - name: Missing template(s)? + if: contains('!! Missing', steps.check-word.outputs.stdout) + run: exit 1