From c1327997a4d3d73c0ab1aac9c5fb619f3e7d3016 Mon Sep 17 00:00:00 2001 From: Christopher Byrd Date: Fri, 12 Jan 2024 15:16:21 -0800 Subject: [PATCH] nit --- .github/workflows/main.yml | 12 +++++++++-- arches_rdm_example_project/settings.py | 2 +- setup.py | 30 ++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 setup.py diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 687f239..ca25cec 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,13 +50,21 @@ jobs: with: elasticsearch-version: 8 - - name: Check for ESLint issues + - name: Check for TypeScript and ESLint issues run: | echo "Removing yarn.lock due to yarn v1 package resolution issues" echo "https://github.com/iarna/wide-align/issues/63" rm yarn.lock - yarn && yarn eslint:check + yarn && yarn eslint:check && yarn typescript:check - name: Check for missing migrations run: | python manage.py makemigrations --check + + - name: Run Project unit tests + run: | + python -W default::DeprecationWarning -m coverage run manage.py test tests --pattern="*.py" --settings="tests.test_settings" + + - name: Report coverage + run: | + coverage report diff --git a/arches_rdm_example_project/settings.py b/arches_rdm_example_project/settings.py index 43a1f63..e55bc7b 100644 --- a/arches_rdm_example_project/settings.py +++ b/arches_rdm_example_project/settings.py @@ -371,7 +371,7 @@ # {langcode}-{regioncode} eg: en, en-gb .... # a list of language codes can be found here http://www.i18nguy.com/unicode/language-identifiers.html LANGUAGES = [ - ('de', _('German')), +# ('de', _('German')), ('en', _('English')), # ('en-gb', _('British English')), # ('es', _('Spanish')), diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..fcf9219 --- /dev/null +++ b/setup.py @@ -0,0 +1,30 @@ +from setuptools import setup, find_packages + +setup( + name="arches_rdm_example_project", + version="0.0.1", + description="", + url="", + author="", + author_email="", + license="GNU AGPL3", + packages=find_packages(), + include_package_data=True, + classifiers=[ + # How mature is this project? Common values are + # 3 - Alpha + # 4 - Beta + # 5 - Production/Stable + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Intended Audience :: Science/Research", + "Intended Audience :: Information Technology", + "Topic :: Software Development :: Build Tools", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Framework :: Django :: 4.2", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + ], +)