-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from fossology/feat/test/github-actions
feat(test): add test to GitHub Actions
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# SPDX-FileCopyrightText: 2022 Gaurav Mishra <[email protected]> | ||
# SPDX-License-Identifier: GPL-2.0 | ||
|
||
name: Build and test packages | ||
|
||
on: | ||
- "pull_request" | ||
- "push" | ||
|
||
jobs: | ||
build: | ||
|
||
strategy: | ||
matrix: | ||
python: [3.5, 3.6, 3.7, 3.8, 3.9] | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
architecture: 'x64' | ||
|
||
- name: Install build dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install --requirement requirements.txt | ||
- name: Build and install | ||
run: | | ||
python3 setup.py build | ||
python3 -m pip install . | ||
- name: Test | ||
run: | | ||
atarashi -h | ||
atarashi -a wordFrequencySimilarity ./atarashi/atarashii.py | ||
atarashi -a DLD ./atarashi/atarashii.py | ||
atarashi -a tfidf -s ScoreSim ./atarashi/atarashii.py | ||
atarashi -a tfidf -s CosineSim ./atarashi/atarashii.py | ||
atarashi -a Ngram -s CosineSim ./atarashi/atarashii.py | ||
atarashi -a Ngram -s DiceSim ./atarashi/atarashii.py | ||
atarashi -a Ngram -s BigramCosineSim ./atarashi/atarashii.py | ||
atarashi -a Ngram -s BigramCosineSim ./atarashi/agents |