Skip to content

Commit

Permalink
Merge pull request #98 from fossology/feat/test/github-actions
Browse files Browse the repository at this point in the history
feat(test): add test to GitHub Actions
  • Loading branch information
Kaushl2208 authored Mar 28, 2022
2 parents df80386 + 27bd3d0 commit cf66bee
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build-test.yml
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

0 comments on commit cf66bee

Please sign in to comment.