2020-04-28 15:39:32 +00:00
|
|
|
# This workflow will install Python dependencies, run tests and lint with a single version of Python
|
|
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
|
|
|
|
2020-04-28 15:45:36 +00:00
|
|
|
name: unittests
|
2020-04-28 15:39:32 +00:00
|
|
|
|
2020-12-20 03:17:42 +00:00
|
|
|
on: [push, pull_request]
|
2020-04-28 15:39:32 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
2022-01-21 21:52:16 +00:00
|
|
|
|
|
|
|
name: Test Python ${{ matrix.python.version }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
python:
|
|
|
|
- {version: '3.8'}
|
|
|
|
- {version: '3.9'}
|
|
|
|
#- {version: '3.10'}
|
2020-04-28 15:39:32 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-01-21 21:52:16 +00:00
|
|
|
- name: Set up Python ${{ matrix.python.version }}
|
2020-04-28 15:39:32 +00:00
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
2022-01-21 21:52:16 +00:00
|
|
|
python-version: ${{ matrix.python.version }}
|
2020-04-28 15:39:32 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install flake8 pytest
|
2021-08-09 07:22:35 +00:00
|
|
|
python ModuleUpdate.py --yes --force
|
2020-04-28 15:54:23 +00:00
|
|
|
- name: Unittests
|
2020-04-28 15:39:32 +00:00
|
|
|
run: |
|
2020-04-29 16:44:03 +00:00
|
|
|
pytest test
|