Skip to content

Commit

Permalink
Added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timerke committed Feb 7, 2024
1 parent fe49813 commit ad6330e
Show file tree
Hide file tree
Showing 12 changed files with 369 additions and 148 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/flake8.yaml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Linter

on:
push:
branches:
- master
- 'dev-**'
pull_request:
branches:
- master
- 'dev-**'

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8
- name: Check flake8
run: python -m flake8 . --count --show-source --statistics --append-config .flake8
27 changes: 27 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Tests

on:
push:
branches:
- main
- 'dev-**'

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Run tests
run: |
export QT_QPA_PLATFORM=offscreen
python -m unittest discover tests
- name: Checking package installation
run: python setup.py install
Loading

0 comments on commit ad6330e

Please sign in to comment.