| 1 |
--- |
| 2 |
name: Run Unit-tests |
| 3 |
|
| 4 |
on: push |
| 5 |
|
| 6 |
jobs: |
| 7 |
run_unit_test: |
| 8 |
runs-on: ubuntu-22.04 |
| 9 |
strategy: |
| 10 |
matrix: |
| 11 |
python-version: ["3.8", "3.9", "3.10"] |
| 12 |
|
| 13 |
steps: |
| 14 |
- uses: actions/checkout@v3 |
| 15 |
- name: Set up Python ${{ matrix.python-version }} |
| 16 |
uses: actions/setup-python@v4 |
| 17 |
with: |
| 18 |
python-version: ${{ matrix.python-version }} |
| 19 |
- name: Install dependencies |
| 20 |
run: | |
| 21 |
python -m pip install --upgrade pip |
| 22 |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi |
| 23 |
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi |
| 24 |
- name: Lint with pylinit |
| 25 |
continue-on-error: true |
| 26 |
run: | |
| 27 |
make pylint |
| 28 |
- name: Run unit tests |
| 29 |
if: success() || failure() |
| 30 |
run: | |
| 31 |
make unittest |
| 32 |
make coverage_report |