Merge pull request #126 from ohdearaugustin/topic/gitaction-test

This commit is contained in:
Vikash Kothary 2022-09-03 14:00:59 +01:00 committed by GitHub
commit 43437cf052
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 983 additions and 808 deletions

25
.github/workflows/requirements.yml vendored Normal file
View File

@ -0,0 +1,25 @@
---
name: Update requirements file
on:
push:
branches:
- develop
workflow_dispatch:
jobs:
update-requirements:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Generate requirements
run: bash scripts/poetry-export.sh
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update requirements{-dev}.txt

47
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,47 @@
---
name: Python Unittests
on:
pull_request:
branches:
- develop
push:
branches:
- develop
- main
workflow_dispatch:
jobs:
unittest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup config
run: cp config/.env.example config/.env.local
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- name: Install library
run: poetry install --no-interaction
- name: Run Tests
run: poetry run python -m unittest discover -s tests

1464
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,109 +1,114 @@
# THE FILE WAS GENERATED BY POETRY, DO NOT EDIT! # THE FILE WAS GENERATED BY POETRY, DO NOT EDIT!
anki==2.1.49 anki==2.1.49 ; python_version >= "3.8" and python_version < "4.0"
appnope==0.1.3; platform_system == "Darwin" or sys_platform == "darwin" or python_version >= "3.3" and sys_platform == "darwin" appnope==0.1.3 ; python_version >= "3.8" and python_version < "4.0" and platform_system == "Darwin" or python_version >= "3.8" and python_version < "4.0" and sys_platform == "darwin"
argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 ; python_version >= "3.8" and python_version < "4.0"
argon2-cffi-bindings==21.2.0 argon2-cffi==21.3.0 ; python_version >= "3.8" and python_version < "4.0"
asttokens==2.0.5 asttokens==2.0.8 ; python_version >= "3.8" and python_version < "4.0"
attrs==21.4.0 attrs==22.1.0 ; python_version >= "3.8" and python_version < "4.0"
backcall==0.2.0 backcall==0.2.0 ; python_version >= "3.8" and python_version < "4.0"
beautifulsoup4==4.11.1 beautifulsoup4==4.11.1 ; python_version >= "3.8" and python_version < "4.0"
bleach==5.0.1 bleach==5.0.1 ; python_version >= "3.8" and python_version < "4.0"
certifi==2022.6.15 certifi==2022.6.15 ; python_version >= "3.8" and python_version < "4"
cffi==1.15.1 cffi==1.15.1 ; python_version >= "3.8" and python_version < "4.0"
charset-normalizer==2.1.0 charset-normalizer==2.1.1 ; python_version >= "3.8" and python_version < "4"
click==8.1.3 click==8.1.3 ; python_version >= "3.8" and python_version < "4.0"
colorama==0.4.5; python_version >= "3.3" and sys_platform == "win32" or sys_platform == "win32" or platform_system == "Windows" colorama==0.4.5 ; python_version >= "3.8" and python_version < "4.0" and platform_system == "Windows" or python_version >= "3.8" and python_version < "4.0" and sys_platform == "win32"
debugpy==1.6.0 debugpy==1.6.3 ; python_version >= "3.8" and python_version < "4.0"
decorator==4.4.2 decorator==4.4.2 ; python_version >= "3.8" and python_version < "4.0"
defusedxml==0.7.1 defusedxml==0.7.1 ; python_version >= "3.8" and python_version < "4.0"
distro==1.7.0 distro==1.7.0 ; python_version >= "3.8" and python_version < "4.0"
entrypoints==0.4 entrypoints==0.4 ; python_version >= "3.8" and python_version < "4.0"
executing==0.8.3 executing==1.0.0 ; python_version >= "3.8" and python_version < "4.0"
fastjsonschema==2.15.3 fastjsonschema==2.16.1 ; python_version >= "3.8" and python_version < "4.0"
ghp-import==2.1.0 ghp-import==2.1.0 ; python_version >= "3.8" and python_version < "4.0"
idna==3.3 idna==3.3 ; python_version >= "3.8" and python_version < "4"
importlib-metadata==4.12.0 importlib-metadata==4.12.0 ; python_version >= "3.8" and python_version < "4.0"
importlib-resources==5.8.0; python_version < "3.9" importlib-resources==5.9.0 ; python_version >= "3.8" and python_version < "3.9"
ipykernel==6.15.0 ipykernel==6.15.2 ; python_version >= "3.8" and python_version < "4.0"
ipython==8.4.0 ipython-genutils==0.2.0 ; python_version >= "3.8" and python_version < "4.0"
ipython-genutils==0.2.0 ipython==8.4.0 ; python_version >= "3.8" and python_version < "4.0"
ipywidgets==7.7.1 ipywidgets==8.0.1 ; python_version >= "3.8" and python_version < "4.0"
jedi==0.18.1 jedi==0.18.1 ; python_version >= "3.8" and python_version < "4.0"
jinja2==3.1.2 jinja2==3.1.2 ; python_version >= "3.8" and python_version < "4.0"
json5==0.9.8 json5==0.9.10 ; python_version >= "3.8" and python_version < "4.0"
jsonschema==4.6.1 jsonschema==4.15.0 ; python_version >= "3.8" and python_version < "4.0"
jupyter==1.0.0 jupyter-client==7.3.5 ; python_version >= "3.8" and python_version < "4.0"
jupyter-client==7.3.4 jupyter-console==6.4.4 ; python_version >= "3.8" and python_version < "4.0"
jupyter-console==6.4.4 jupyter-core==4.11.1 ; python_version >= "3.8" and python_version < "4.0"
jupyter-core==4.10.0 jupyter==1.0.0 ; python_version >= "3.8" and python_version < "4.0"
jupyterlab==2.3.2 jupyterlab-pygments==0.2.2 ; python_version >= "3.8" and python_version < "4.0"
jupyterlab-pygments==0.2.2 jupyterlab-server==1.2.0 ; python_version >= "3.8" and python_version < "4.0"
jupyterlab-server==1.2.0 jupyterlab-widgets==3.0.2 ; python_version >= "3.8" and python_version < "4.0"
jupyterlab-widgets==1.1.1; python_version >= "3.6" jupyterlab==2.3.2 ; python_version >= "3.8" and python_version < "4.0"
jupytext==1.13.8 jupytext==1.14.1 ; python_version >= "3.8" and python_version < "4.0"
markdown==3.3.7 lxml==4.9.1 ; python_version >= "3.8" and python_version < "4.0"
markdown-it-py==2.1.0 markdown-it-py==2.1.0 ; python_version >= "3.8" and python_version < "4.0"
markupsafe==2.1.1 markdown==3.3.7 ; python_version >= "3.8" and python_version < "4.0"
matplotlib-inline==0.1.3 markupsafe==2.1.1 ; python_version >= "3.8" and python_version < "4.0"
mdit-py-plugins==0.3.0 matplotlib-inline==0.1.6 ; python_version >= "3.8" and python_version < "4.0"
mdurl==0.1.1 mdit-py-plugins==0.3.0 ; python_version >= "3.8" and python_version < "4.0"
mergedeep==1.3.4 mdurl==0.1.2 ; python_version >= "3.8" and python_version < "4.0"
mistune==0.8.4 mergedeep==1.3.4 ; python_version >= "3.8" and python_version < "4.0"
mkdocs==1.3.0 mistune==0.8.4 ; python_version >= "3.8" and python_version < "4.0"
mkdocs-jupyter==0.19.0 mkdocs-jupyter==0.19.0 ; python_version >= "3.8" and python_version < "4"
mkdocs-material==8.3.8 mkdocs-material-extensions==1.0.3 ; python_version >= "3.8" and python_version < "4"
mkdocs-material-extensions==1.0.3 mkdocs-material==8.4.2 ; python_version >= "3.8" and python_version < "4"
nbclient==0.6.6 mkdocs==1.3.1 ; python_version >= "3.8" and python_version < "4.0"
nbconvert==6.5.0 nbclient==0.6.7 ; python_version >= "3.8" and python_version < "4.0"
nbformat==5.4.0 nbconvert==6.5.3 ; python_version >= "3.8" and python_version < "4.0"
nest-asyncio==1.5.5 nbformat==5.4.0 ; python_version >= "3.8" and python_version < "4.0"
notebook==6.4.12 nest-asyncio==1.5.5 ; python_version >= "3.8" and python_version < "4.0"
orjson==3.7.5; platform_machine == "x86_64" notebook==6.4.12 ; python_version >= "3.8" and python_version < "4.0"
packaging==21.3 orjson==3.8.0 ; python_version >= "3.8" and python_version < "4.0" and platform_machine == "x86_64"
pandocfilters==1.5.0 packaging==21.3 ; python_version >= "3.8" and python_version < "4.0"
parso==0.8.3 pandocfilters==1.5.0 ; python_version >= "3.8" and python_version < "4.0"
pexpect==4.8.0; python_version >= "3.3" and sys_platform != "win32" or sys_platform != "win32" parso==0.8.3 ; python_version >= "3.8" and python_version < "4.0"
pickleshare==0.7.5 pexpect==4.8.0 ; python_version >= "3.8" and python_version < "4.0" and sys_platform != "win32"
prometheus-client==0.14.1 pickleshare==0.7.5 ; python_version >= "3.8" and python_version < "4.0"
prompt-toolkit==3.0.30 pkgutil-resolve-name==1.3.10 ; python_version >= "3.8" and python_version < "3.9"
protobuf==4.21.2 prometheus-client==0.14.1 ; python_version >= "3.8" and python_version < "4.0"
psutil==5.9.1 prompt-toolkit==3.0.30 ; python_version >= "3.8" and python_version < "4.0"
ptyprocess==0.7.0; sys_platform != "win32" or os_name != "nt" or python_version >= "3.3" and sys_platform != "win32" protobuf==4.21.5 ; python_version >= "3.8" and python_version < "4.0"
pure-eval==0.2.2 psutil==5.9.1 ; python_version >= "3.8" and python_version < "4.0"
py==1.11.0; implementation_name == "pypy" ptyprocess==0.7.0 ; python_version >= "3.8" and python_version < "4.0" and os_name != "nt" or python_version >= "3.8" and python_version < "4.0" and sys_platform != "win32"
pycparser==2.21 pure-eval==0.2.2 ; python_version >= "3.8" and python_version < "4.0"
pygments==2.12.0 py==1.11.0 ; python_version >= "3.8" and python_version < "4.0" and implementation_name == "pypy"
pymdown-extensions==9.5 pycparser==2.21 ; python_version >= "3.8" and python_version < "4.0"
pyparsing==3.0.9 pygments==2.13.0 ; python_version >= "3.8" and python_version < "4.0"
pyrsistent==0.18.1 pymdown-extensions==9.5 ; python_version >= "3.8" and python_version < "4"
python-dateutil==2.8.2 pyparsing==3.0.9 ; python_version >= "3.8" and python_version < "4.0"
pywin32==304; sys_platform == "win32" and platform_python_implementation != "PyPy" pyrsistent==0.18.1 ; python_version >= "3.8" and python_version < "4.0"
pywinpty==2.0.5; os_name == "nt" pysocks==1.7.1 ; python_version >= "3.8" and python_version < "4"
pyyaml==6.0 python-dateutil==2.8.2 ; python_version >= "3.8" and python_version < "4.0"
pyyaml-env-tag==0.1 pywin32==304 ; sys_platform == "win32" and platform_python_implementation != "PyPy" and python_version >= "3.8" and python_version < "4.0"
pyzmq==23.2.0 pywinpty==2.0.7 ; python_version >= "3.8" and python_version < "4.0" and os_name == "nt"
qtconsole==5.3.1 pyyaml-env-tag==0.1 ; python_version >= "3.8" and python_version < "4.0"
qtpy==2.1.0 pyyaml==6.0 ; python_version >= "3.8" and python_version < "4.0"
requests==2.28.1 pyzmq==23.2.1 ; python_version >= "3.8" and python_version < "4.0"
send2trash==1.8.0 qtconsole==5.3.2 ; python_version >= "3.8" and python_version < "4.0"
six==1.16.0 qtpy==2.2.0 ; python_version >= "3.8" and python_version < "4.0"
soupsieve==2.3.2.post1 requests==2.28.1 ; python_version >= "3.8" and python_version < "4"
stack-data==0.3.0 requests[socks]==2.28.1 ; python_version >= "3.8" and python_version < "4"
stringcase==1.2.0 send2trash==1.8.0 ; python_version >= "3.8" and python_version < "4.0"
terminado==0.15.0 setuptools==65.3.0 ; python_version >= "3.8" and python_version < "4.0"
tinycss2==1.1.1 six==1.16.0 ; python_version >= "3.8" and python_version < "4.0"
toml==0.10.2 soupsieve==2.3.2.post1 ; python_version >= "3.8" and python_version < "4.0"
tornado==6.1 stack-data==0.5.0 ; python_version >= "3.8" and python_version < "4.0"
traitlets==5.3.0 stringcase==1.2.0 ; python_version >= "3.8" and python_version < "4.0"
urllib3==1.26.9 terminado==0.15.0 ; python_version >= "3.8" and python_version < "4.0"
waitress==2.1.2 tinycss2==1.1.1 ; python_version >= "3.8" and python_version < "4.0"
watchdog==2.1.9 toml==0.10.2 ; python_version >= "3.8" and python_version < "4.0"
wcwidth==0.2.5 tornado==6.2 ; python_version >= "3.8" and python_version < "4.0"
webencodings==0.5.1 traitlets==5.3.0 ; python_version >= "3.8" and python_version < "4.0"
webob==1.8.7 urllib3==1.26.12 ; python_version >= "3.8" and python_version < "4"
webtest==2.0.35 waitress==2.1.2 ; python_version >= "3.8" and python_version < "4.0"
widgetsnbextension==3.6.1 watchdog==2.1.9 ; python_version >= "3.8" and python_version < "4.0"
zipp==3.8.0 wcwidth==0.2.5 ; python_version >= "3.8" and python_version < "4.0"
webencodings==0.5.1 ; python_version >= "3.8" and python_version < "4.0"
webob==1.8.7 ; python_version >= "3.8" and python_version < "4.0"
webtest==2.0.35 ; python_version >= "3.8" and python_version < "4.0"
widgetsnbextension==4.0.2 ; python_version >= "3.8" and python_version < "4.0"
zipp==3.8.1 ; python_version >= "3.8" and python_version < "4.0"
-e src/. -e src/.

View File

@ -1,22 +1,24 @@
# THE FILE WAS GENERATED BY POETRY, DO NOT EDIT! # THE FILE WAS GENERATED BY POETRY, DO NOT EDIT!
anki==2.1.49 anki==2.1.49 ; python_version >= "3.8" and python_version < "4.0"
beautifulsoup4==4.11.1 beautifulsoup4==4.11.1 ; python_version >= "3.8" and python_version < "4.0"
certifi==2022.6.15 certifi==2022.6.15 ; python_version >= "3.8" and python_version < "4"
charset-normalizer==2.1.0 charset-normalizer==2.1.1 ; python_version >= "3.8" and python_version < "4"
decorator==4.4.2 decorator==4.4.2 ; python_version >= "3.8" and python_version < "4.0"
distro==1.7.0 distro==1.7.0 ; python_version >= "3.8" and python_version < "4.0"
idna==3.3 idna==3.3 ; python_version >= "3.8" and python_version < "4"
importlib-metadata==4.12.0 importlib-metadata==4.12.0 ; python_version >= "3.8" and python_version < "3.10"
markdown==3.3.7 markdown==3.3.7 ; python_version >= "3.8" and python_version < "4.0"
orjson==3.7.5; platform_machine == "x86_64" orjson==3.8.0 ; python_version >= "3.8" and python_version < "4.0" and platform_machine == "x86_64"
protobuf==4.21.2 protobuf==4.21.5 ; python_version >= "3.8" and python_version < "4.0"
psutil==5.9.1 psutil==5.9.1 ; python_version >= "3.8" and python_version < "4.0"
requests==2.28.1 pysocks==1.7.1 ; python_version >= "3.8" and python_version < "4"
send2trash==1.8.0 requests==2.28.1 ; python_version >= "3.8" and python_version < "4"
soupsieve==2.3.2.post1 requests[socks]==2.28.1 ; python_version >= "3.8" and python_version < "4"
stringcase==1.2.0 send2trash==1.8.0 ; python_version >= "3.8" and python_version < "4.0"
urllib3==1.26.9 soupsieve==2.3.2.post1 ; python_version >= "3.8" and python_version < "4.0"
webob==1.8.7 stringcase==1.2.0 ; python_version >= "3.8" and python_version < "4.0"
zipp==3.8.0 urllib3==1.26.12 ; python_version >= "3.8" and python_version < "4"
webob==1.8.7 ; python_version >= "3.8" and python_version < "4.0"
zipp==3.8.1 ; python_version >= "3.8" and python_version < "3.10"