Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
624994c
Only run actions on pull_request
MrMatAP Jul 4, 2021
fb6b42b
Added local docker configuration
MrMatAP Jul 10, 2021
9603638
create-react-app scaffold
MrMatAP Jul 10, 2021
02a1cbb
Ignoring terraform generated-files
MrMatAP Jul 10, 2021
fdcd973
Added ui run configurations
MrMatAP Jul 10, 2021
fb0a1ca
Adjusted to local Python environment
MrMatAP Jul 10, 2021
09bf0a8
Added proxy
MrMatAP Jul 10, 2021
4304715
Invoking the greetingv1 api
MrMatAP Jul 10, 2021
fda4b71
Reverted to project default Python
MrMatAP Jul 10, 2021
d87ded6
We build into the Python static files directory
MrMatAP Jul 10, 2021
6b15dcb
Cosmetic change
MrMatAP Jul 25, 2021
dc60b7b
Must match on the correct GH event to make a release
MrMatAP Jul 25, 2021
7efd186
Removed the missing SAST badge
MrMatAP Jul 25, 2021
b382ad0
Added community guides
MrMatAP Jul 25, 2021
dc07ae0
Introduced react API
MrMatAP Jul 31, 2021
9f20460
Changed to class-based apis
MrMatAP Jul 31, 2021
38a6f71
Using compatible versions instead
MrMatAP Jul 31, 2021
d3831b8
Using semantic-ui and oidc context
MrMatAP Jul 31, 2021
03c6297
Merge remote-tracking branch 'origin/develop' into develop
MrMatAP Jul 31, 2021
bb8fb2b
Cosmetic change
MrMatAP Aug 3, 2021
ab5e1d2
Added additional datasources
MrMatAP Aug 3, 2021
c71f474
Removed react UI
MrMatAP Aug 3, 2021
18ae8b7
Version bump on flask-smorest
MrMatAP Aug 3, 2021
c9c94f2
Added some notes on databases
MrMatAP Aug 3, 2021
bf01486
MethodView mandates naming of methods
MrMatAP Aug 3, 2021
56e9c91
Sanitised on the oidc integration
MrMatAP Aug 3, 2021
dbea280
Adopted PEP517
MrMatAP Oct 23, 2021
38cc78f
Renamed to match common practice
MrMatAP Oct 23, 2021
5eca8e8
Use importlib.metadata instead of pkg_resources
MrMatAP Oct 23, 2021
f5ce615
Added local database
MrMatAP Oct 23, 2021
f2ffab5
Installing the wheel instead of the source dist
MrMatAP Oct 23, 2021
0eb4277
We have no static files or templates
MrMatAP Oct 23, 2021
1c67317
No longer required
MrMatAP Oct 23, 2021
52ca998
Added Keycloak configuration
MrMatAP Oct 23, 2021
fc40409
Excluding terraform dynamic directories
MrMatAP Oct 23, 2021
046d6b4
IDEA project file updates
MrMatAP Oct 23, 2021
8bbe6f6
Cosmetic change
MrMatAP Oct 31, 2021
db62c46
Updated datasources
MrMatAP Oct 31, 2021
d6241cd
Experimental TED
MrMatAP Oct 31, 2021
82e570c
Wrapping __version__ in try/catch block
MrMatAP Nov 6, 2021
a2f9122
Switched from pkg_resources to importlib
MrMatAP Nov 12, 2021
55d4734
Merge remote-tracking branch 'origin/feature/pep517' into feature/pep517
MrMatAP Nov 15, 2021
29266e0
in-progress
MrMatAP Nov 20, 2021
b8b5ba4
Replaced cli_ui/halo with rich and removed flake8
MrMatAP Nov 20, 2021
592d9df
Updated the readme with build instructions
MrMatAP Nov 20, 2021
c723975
IDEA project file update
MrMatAP Dec 5, 2021
b350d49
Refactored the testsuite for persistent local services
MrMatAP Dec 5, 2021
da9f317
WIP
MrMatAP Dec 25, 2021
2f51d3b
Merge remote-tracking branch 'origin/feature/pep517' into feature/pep517
MrMatAP Dec 25, 2021
ae67ae6
Collapsed the database migrations
MrMatAP Dec 25, 2021
64ea0b0
Adjusted the user name
MrMatAP Dec 25, 2021
ecc8b0d
Testsuite works with local infrastructure
MrMatAP Dec 25, 2021
dd9b9ae
Added python-keycloak
MrMatAP Dec 25, 2021
77f691b
Datasource update
MrMatAP Dec 25, 2021
823e166
Upgraded pylint
MrMatAP Dec 25, 2021
275f9ab
Fixed pylint logging complaints
MrMatAP Dec 25, 2021
96eaf26
Upgrading Python to 3.10.1
MrMatAP Dec 25, 2021
a7b0bd3
Wrapping package version into try/catch
MrMatAP Dec 25, 2021
d670c8b
Need wheel
MrMatAP Dec 25, 2021
fdc1390
Re-enabling coverage
MrMatAP Dec 25, 2021
bd1a363
Merge branch 'feature/pep517' into develop
MrMatAP Dec 26, 2021
a4605e0
Added flask-smorest
MrMatAP Dec 26, 2021
97bd3aa
Fixed bad import
MrMatAP Dec 26, 2021
44c89e4
IDEA project file update
MrMatAP Dec 26, 2021
cf0d943
Upgraded to Python 3.10.1
MrMatAP Dec 26, 2021
a39bd0b
Removed empty directory
MrMatAP Dec 26, 2021
bcb12d9
More pythonic way of querying the env
MrMatAP Dec 26, 2021
278f053
Use psycopg2-binary
MrMatAP Dec 26, 2021
33320bb
Cleaned up datasources
MrMatAP Dec 26, 2021
81a37a4
Fixed CUI run configuration
MrMatAP Dec 26, 2021
51acaa1
Generate the session signing key
MrMatAP Dec 26, 2021
59dd03d
Rudimentary client
MrMatAP Dec 26, 2021
01d687b
Documentation update
MrMatAP Dec 26, 2021
404561d
Fixed complaint about logging
MrMatAP Dec 26, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .flake8

This file was deleted.

26 changes: 10 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ name: Build
env:
MAJOR: 0
MINOR: 0
PYTHON_VERSION: 3.9.6
PYTHON_VERSION: 3.10.1

#
# Establish when the workflow is run
# We do build on every push except when we push onto main (which we ought to be subject to branch protection)
# We do build on every push except when we push onto main (which ought to be subject to branch protection)
# We do build whenever a PR onto main is closed (see on) and the code is actually merged (see release job if)
# Why is that okay?
# Since we're making a PR, we know from the previous workflow run on push that the repo is okay and the PR
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Calculate Build Context
run: |
MRMAT_VERSION="${MAJOR}.${MINOR}.${GITHUB_RUN_NUMBER}"
if [ "$GITHUB_EVENT_NAME" == 'pull_request_target' ]; then
if [ "$GITHUB_EVENT_NAME" == 'pull_request_target' && GITHUB_BASE_REF == 'main']; then
MRMAT_IS_RELEASE=true
echo "::warning ::Building release ${MRMAT_VERSION}"
echo "MRMAT_IS_RELEASE=true" >> $GITHUB_ENV
Expand All @@ -62,22 +62,16 @@ jobs:
- name: Establish a cache for dependencies
uses: actions/cache@v2
with:
path: ~/.local
path: ${HOME}/.local
key: ${{ runner.os }}

- name: Install dependencies
- name: Build
run: |
python -m pip install --upgrade pip
pip install --user wheel
export PYTHONUSERBASE=${HOME}/.local
pip install --user -r requirements.txt
pip install --user -r test-requirements.txt

- name: Test
run: |
flake8 --statistics
pylint mrmat_python_api_flask
python ./setup.py install
python -m pytest
${PYTHONUSERBASE}/bin/pylint ${GITHUB_WORKSPACE}/mrmat_python_api_flask
PYTHONPATH=${GITHUB_WORKSPACE} python -m pytest --cov=mrmat_python_api_flask
PYTHONPATH=${GITHUB_WORKSPACE} python -m build --wheel -n

- name: Upload test results
uses: actions/upload-artifact@v2
Expand All @@ -90,7 +84,7 @@ jobs:

- name: Conditional Release
uses: marvinpinto/action-automatic-releases@latest
if: github.event.pull_request.merged == true
if: (github.event.pull_request.merged == true && github.base_ref == 'main')
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ env.MRMAT_VERSION }}"
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -245,3 +245,6 @@ dmypy.json
.prof

# End of https://www.toptal.com/developers/gitignore/api/jetbrains,python

var/terraform/.terraform/
var/terraform/.terraform.lock.hcl
4 changes: 2 additions & 2 deletions .idea/dataSources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/markdown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions .idea/mrmat-python-api-flask.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions .idea/runConfigurations/client.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions .idea/runConfigurations/docker.xml

This file was deleted.

14 changes: 14 additions & 0 deletions .idea/runConfigurations/docker__nostromo_.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .idea/runConfigurations/mrmat_python_api_flask__default_.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions .idea/runConfigurations/test__resources_.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions .idea/runConfigurations/tests.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading