This repository has been archived by the owner on Dec 13, 2024. It is now read-only.
Add weighing for cos sim to queries, similar to 9c6bd48b #79
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Run Test Cases' | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Set up Python and Pip | |
uses: actions/setup-python@v4 | |
with: | |
cache: 'pip' | |
python-version: '3.8' | |
- name: Upgrade Pip | |
run: python3 -m pip install --upgrade pip | |
- name: Install Python dependencies | |
run: pip3 install -r requirements.txt | |
- name: Build CPE dictionary | |
env: | |
NVD_API_KEY: ${{ secrets.NVD_API_KEY }} | |
run: NVD_API_KEY=$NVD_API_KEY python3 cpe_search.py -u | |
- name: Run test cases | |
run: python3 test.py |