Skip to content

Commit 1f38256

Browse files
authored
Test release (#26)
* Cosmetics * We're lenient on module docstrings * Cosmetic change * Small updates (#22) * Applied source layout * Added lint configuration * Fixed IDEA pylint configuration * Adjusted path * Adjusted path for pytest * Upgraded dependencies * Modernised and cleaned up (#23) * Upgraded to Python 3.10.5 container * Local backup * Modernised surroundings * We do need itsdangerous * Removed duplicate keyword * Adjusted path to badge * Added test dependencies * Migrations are part of the package again
1 parent 61152c8 commit 1f38256

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+174
-204
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name: Build
99
env:
1010
MAJOR: 0
1111
MINOR: 0
12-
PYTHON_VERSION: 3.10.1
12+
PYTHON_VERSION: 3.11.0
1313

1414
#
1515
# Establish when the workflow is run
@@ -44,7 +44,7 @@ jobs:
4444
- name: Calculate Build Context
4545
run: |
4646
MRMAT_VERSION="${MAJOR}.${MINOR}.${GITHUB_RUN_NUMBER}"
47-
if [ "$GITHUB_EVENT_NAME" == 'pull_request_target' && GITHUB_BASE_REF == 'main']; then
47+
if [ "$GITHUB_EVENT_NAME" == 'pull_request_target' -a "$GITHUB_BASE_REF" == 'main' ]; then
4848
MRMAT_IS_RELEASE=true
4949
echo "::warning ::Building release ${MRMAT_VERSION}"
5050
echo "MRMAT_IS_RELEASE=true" >> $GITHUB_ENV
@@ -69,12 +69,10 @@ jobs:
6969

7070
- name: Build
7171
run: |
72-
export PYTHONUSERBASE=${HOME}/.local
73-
pip install --user wheel
7472
pip install --user -r requirements.txt
75-
${PYTHONUSERBASE}/bin/pylint ${GITHUB_WORKSPACE}/mrmat_python_api_flask
76-
PYTHONPATH=${GITHUB_WORKSPACE} python -m pytest --cov=mrmat_python_api_flask
77-
PYTHONPATH=${GITHUB_WORKSPACE} python -m build --wheel -n
73+
pylint ${GITHUB_WORKSPACE}/src/python/mrmat_python_api_flask
74+
PYTHONPATH=${GITHUB_WORKSPACE}/src/python python -m pytest
75+
python -m build --wheel -n
7876
7977
- name: Upload test results
8078
uses: actions/upload-artifact@v2

.gitignore

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,6 @@ coverage.xml
159159
.pytest_cache/
160160
pytestdebug.log
161161

162-
# Translations
163-
*.mo
164-
*.pot
165-
166162
# Django stuff:
167163
*.log
168164
local_settings.py
@@ -245,6 +241,3 @@ dmypy.json
245241
.prof
246242

247243
# End of https://www.toptal.com/developers/gitignore/api/jetbrains,python
248-
249-
250-
.coverage

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/mrmat-python-api-flask.iml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/pylint.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/docker__nostromo_.xml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.idea/runConfigurations/lint.xml

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/mrmat_python_api_flask__local_infrastructure_.xml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/mrmat_python_api_flask__no_infrastructure_.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/mrmat_python_api_flask__no_infrastructure__debug_.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)