Skip to content

Commit 9d69eb9

Browse files
committed
Update token_consistency.yaml
1 parent da3eb4d commit 9d69eb9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/token_consistency.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Check consistency of tokens.txt file
22

3+
# Define the file paths under `paths` to trigger this check only when specific files are modified.
4+
# This script will then execute checks only on files that have changed, rather than all files listed in `paths`.
5+
36
# **Note** : To add a new token file for checks, include its path in:
47
# - `on` -> `push` and `pull_request` sections
58
# - `jobs` -> `check_tokens` -> `steps` -> Set global variable for multiple tokens.txt paths -> `TOKENS_FILES`
@@ -31,13 +34,12 @@ jobs:
3134
steps:
3235
- name: Checkout code
3336
uses: actions/checkout@v2
34-
with:
35-
fetch-depth: 0 # Fetch all history to ensure 'origin/dev' is available
37+
# with:
38+
# fetch-depth: 0 # Fetch all history to ensure 'origin/dev' is available
3639

3740
- name: Get list of changed files
3841
id: changed_files
3942
run: |
40-
# Ensure origin/dev is set as the default branch reference
4143
git fetch origin dev
4244
4345
# Get the list of changed files compared to origin/dev and save them to a file
@@ -51,7 +53,7 @@ jobs:
5153
5254
- name: Set global variable for multiple tokens.txt paths
5355
run: |
54-
# Define an array with all the paths of tokens.txt files
56+
# All token files that needs to checked must be included here too, same as in `paths`.
5557
TOKENS_FILES=(
5658
"chebai/preprocessing/bin/smiles_token/tokens.txt"
5759
"chebai/preprocessing/bin/smiles_token_unlabeled/tokens.txt"

0 commit comments

Comments
 (0)