File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11name : 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
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"
You can’t perform that action at this time.
0 commit comments