Merge remote-tracking branch 'origin/master' into dev

This commit is contained in:
Andreas Zweili 2022-11-13 15:45:32 +01:00
commit 3ff0a0c056
3 changed files with 43 additions and 12 deletions

32
.github/workflows/tests.yml vendored Normal file
View File

@ -0,0 +1,32 @@
on:
push:
branches: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
env:
IMAGE_NAME: network_inventory
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/local.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest -nauto --ds=network_inventory.settings.ram_test --nomigrations

View File

@ -1,12 +1,12 @@
asgiref==3.5.0
attrs==21.4.0
asgiref==3.5.2
attrs==22.1.0
coverage==6.5.0
Django==4.1.3
django-crispy-forms==1.14.0
django-filter==21.1
django-floppyforms==1.9.0
django-guardian==2.4.0
django-htmx==1.8.0
django-htmx==1.12.2
django-model-utils==4.2.0
django-nested-admin==3.4.0
django-tables2==2.4.1
@ -25,7 +25,7 @@ pytest==6.2.5
pytest-cov==3.0.0
pytest-django==4.5.2
pytest-forked==1.4.0
pytest-xdist==2.5.0
pytest-xdist==3.0.2
python-dateutil==2.8.2
python-monkey-business==1.0.0
pytz==2021.3

View File

@ -1,7 +1,7 @@
asgiref==3.4.1
asgiref==3.5.2
astroid==2.9.0
attrs==21.4.0
autopep8==1.6.0
attrs==22.1.0
autopep8
black==21.12b0
click==8.0.3
coverage==6.5.0
@ -10,13 +10,13 @@ django-crispy-forms==1.14.0
django-filter==21.1
django-floppyforms==1.9.0
django-guardian==2.4.0
django-htmx==1.8.0
django-htmx==1.12.2
django-model-utils==4.2.0
django-nested-admin==3.4.0
django-tables2==2.4.1
execnet==1.9.0
Faker==11.1.0
flake8==4.0.1
flake8
iniconfig==1.1.1
isort==5.10.1
jedi==0.18.1
@ -32,7 +32,6 @@ platformdirs==2.4.1
pluggy==1.0.0
py==1.11.0
pyaml==21.10.1
pycodestyle==2.8.0
pyflakes==2.4.0
pylint==2.12.2
pyparsing==3.0.6
@ -41,7 +40,7 @@ pytest==6.2.5
pytest-cov==3.0.0
pytest-django==4.5.2
pytest-forked==1.4.0
pytest-xdist==2.5.0
pytest-xdist==3.0.2
python-dateutil==2.8.2
python-monkey-business==1.0.0
pytz==2021.3
@ -52,6 +51,6 @@ sqlparse==0.4.3
text-unidecode==1.3
toml==0.10.2
tomli==1.2.3
typing-extensions==4.0.1
typing-extensions==4.4.0
wrapt==1.13.3
yapf==0.32.0