Skip to content

Commit

Permalink
revamp codeql and rename eval file
Browse files Browse the repository at this point in the history
  • Loading branch information
adbar committed Apr 3, 2024
1 parent 6a18366 commit 66d93bc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 23 deletions.
34 changes: 12 additions & 22 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
2 changes: 1 addition & 1 deletion training/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ The scores are calculated on `Universal Dependencies <https://universaldependenc
2. Extract relevant data (language and if applicable specific treebank, see notes in the results table)
3. Concatenate the train, dev and test data into a single file (e.g. ``cat de_gsd*.conllu > 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.
File renamed without changes.

0 comments on commit 66d93bc

Please sign in to comment.