From 66d93bc87e2946ca73a2f975c752102afa4089b1 Mon Sep 17 00:00:00 2001 From: Adrien Barbaresi Date: Wed, 3 Apr 2024 14:48:02 +0200 Subject: [PATCH] revamp codeql and rename eval file --- .github/workflows/codeql.yml | 34 +++++++------------ training/README.rst | 2 +- ...uate_simplema.py => evaluate_simplemma.py} | 0 3 files changed, 13 insertions(+), 23 deletions(-) rename training/{evaluate_simplema.py => evaluate_simplemma.py} (100%) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index ce6dd95..59696bf 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -4,10 +4,9 @@ on: push: branches: [ "main" ] pull_request: - # The branches below must be a subset of the branches above branches: [ "main" ] schedule: - - cron: '15 10 * * 2' + - cron: "15 10 * * 2" jobs: analyze: @@ -22,26 +21,17 @@ jobs: fail-fast: false steps: - - name: Checkout repository - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - languages: python - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - - # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs - # queries: security-extended,security-and-quality + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: python + queries: +security-and-quality - - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v3 + - name: Autobuild + uses: github/codeql-action/autobuild@v3 - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 diff --git a/training/README.rst b/training/README.rst index 53b64e1..06e194a 100644 --- a/training/README.rst +++ b/training/README.rst @@ -10,6 +10,6 @@ The scores are calculated on `Universal Dependencies de-gsd-all.conllu``) 4. Store the files at the expected location (``training/data/UD/``) -4. Run the script, e.g. from the home directory ``python3 training/evaluate_simplema.py`` +4. Run the script, e.g. from the home directory ``python3 training/evaluate_simplemma.py`` 5. Results are stored at ``training/data/results/results_summary.csv``. Also, errors are written in a CSV file for each dataset under the ``data/results``folder. diff --git a/training/evaluate_simplema.py b/training/evaluate_simplemma.py similarity index 100% rename from training/evaluate_simplema.py rename to training/evaluate_simplemma.py