From c6a79f429d0191e4a29904f054619511473332d4 Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Mon, 12 Apr 2021 14:32:13 -0400 Subject: [PATCH] bug fix test --- .github/workflows/repo_status.yml | 2 +- .github/workflows/wiki_gen.yml | 4 ++-- git_status.py | 7 ++++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/repo_status.yml b/.github/workflows/repo_status.yml index 61f8cb0..ab10d78 100644 --- a/.github/workflows/repo_status.yml +++ b/.github/workflows/repo_status.yml @@ -21,7 +21,7 @@ jobs: uses: actions/setup-python@v2 with: python-version: 3.7 -d + - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/wiki_gen.yml b/.github/workflows/wiki_gen.yml index 8425de3..1819c96 100644 --- a/.github/workflows/wiki_gen.yml +++ b/.github/workflows/wiki_gen.yml @@ -25,13 +25,13 @@ jobs: python -m pip install --upgrade pip if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: execute py script # run the run.py to get the latest data + - name: execute status update script # run the run.py to get the latest data run: | python git_status.py env: GIT_TOKEN: ${{ secrets.GIT_TOKEN }} - - name: execute py script # run the wiki_gen + - name: execute wiki generation script # run the wiki_gen run: | python wiki_gen.py diff --git a/git_status.py b/git_status.py index 49e3ff7..36bd13c 100644 --- a/git_status.py +++ b/git_status.py @@ -164,7 +164,7 @@ def search_new_repo_by_category(category: str, elif category == 'Portfolio Selection and Optimisation': combined_df = search_repo_multiple_terms(['portfolio optimization machine learning finance', 'portfolio optimization machine learning trading', - 'portfolio construction machine learning finance' + 'portfolio construction machine learning finance', 'portfolio construction machine learning trading', 'portfolio optimization finance', 'portfolio optimization trading'], @@ -174,7 +174,7 @@ def search_new_repo_by_category(category: str, elif category == 'Factor and Risk Analysis': combined_df = search_repo_multiple_terms(['risk factor finance', 'risk factor trading', - 'risk premia factor finance' + 'risk premia factor finance', 'risk premia factor trading', 'style factor finance', 'style factor trading', @@ -187,6 +187,7 @@ def search_new_repo_by_category(category: str, # only find ones that need to be inserted if combined_df is not None and existing_repo_df is not None: + print(combined_df) combined_df = combined_df[ ~combined_df['repo_path'].str.lower().isin(existing_repo_df['repo_path'].dropna().str.lower())] @@ -349,5 +350,5 @@ def parse_readme_md(): if __name__ == '__main__': - get_repo_status() + # get_repo_status() search_new_repo_and_append(min_stars_number=100)