Skip to content

Commit

Permalink
ci: Fail the daily on missing template
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed Oct 22, 2023
1 parent 820a7a1 commit b7d993a
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit b7d993a

Please sign in to comment.