CTranslate2 Blog #78
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml for checking tags | |
# check ONLY the file being updated ends in .md | |
name: Linting | |
on: | |
push: | |
branches: | |
- develop | |
- release | |
- 'docs/*' | |
- 'roc**' | |
pull_request: | |
branches: | |
- develop | |
- release | |
- 'docs/*' | |
- 'roc**' | |
# the tags should be like: tags: A, B, C, strip into A B C | |
jobs: | |
check-tags: | |
name: Blogs / Tags | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.12] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 2 | |
- name: setup python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install markdown | |
- name: Check for tags | |
run: | | |
python3 check-tags.py |