Skip to content

Commit 47ce2e9

Browse files
committed
Adding unit tests to git actions
1 parent fc96880 commit 47ce2e9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/unittest.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: unit-test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: ["3.9"] # there is an issue with python 3.10 and `collections`
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v3
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install flake8
21+
pip install -r requirements.txt
22+
pip install nose avocado avocado-framework
23+
- name: run nosetest
24+
run: |
25+
nosetests -v tests/unittests/

0 commit comments

Comments
 (0)