Introduce masking class and incorporate in TokenizerMasking (#383) #588
This file contains hidden or 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
name: CI | |
on: | |
push: | |
branches: [ "main", "develop"] | |
pull_request: | |
branches: [ "main", "develop"] | |
paths-ignore: | |
- "CHANGELOG.md" | |
- "README.md" | |
jobs: | |
linting: | |
name: python | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
# Install a specific version of uv. | |
version: "0.7.13" | |
- name: Run ruff (black) | |
# Do not attempt to install the default dependencies, this is much faster. | |
# Run temporarily on a sub directory before the main restyling. | |
run: uv run --no-project --with "ruff==0.9.7" ruff format --target-version py312 --check -n src/ scripts/ | |
- name: Run ruff (flake8) | |
# Do not attempt to install the default dependencies, this is much faster. | |
run: uv run --no-project --with "ruff==0.9.7" ruff check src/ | |
pr: | |
name: PR checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
# Install a specific version of uv. | |
version: "0.7.13" | |
- name: Check PR is linked to an issue | |
# Send the PR number to the script, which will check if it is linked to an issue. | |
run: scripts/check_gh_issue.py $GITHUB_REF_NAME |