Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
19 changes: 10 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: Build
env:
MAJOR: 0
MINOR: 0
PYTHON_VERSION: 3.11.0
PYTHON_VERSION: 3.13.0

#
# Establish when the workflow is run
Expand Down Expand Up @@ -39,12 +39,12 @@ jobs:
steps:

- name: Checkout out our code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Calculate Build Context
run: |
MRMAT_VERSION="${MAJOR}.${MINOR}.${GITHUB_RUN_NUMBER}"
if [ "$GITHUB_EVENT_NAME" == 'pull_request_target' -a "$GITHUB_BASE_REF" == 'main' ]; 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 @@ -60,7 +60,7 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}

- name: Establish a cache for dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.local
Expand All @@ -69,16 +69,17 @@ jobs:

- name: Build
run: |
pip install --user -r requirements.txt
pylint ${GITHUB_WORKSPACE}/src/python/mrmat_python_api_flask
PYTHONPATH=${GITHUB_WORKSPACE}/src/python python -m pytest
python -m build --wheel -n
export PYTHONUSERBASE=${HOME}/.local
pip install --user -r requirements.txt -r requirements.dev.txt
PYTHONPATH=${GITHUB_WORKSPACE}/src pytest
PYTHONPATH=${GITHUB_WORKSPACE}/src python -m build --wheel -n

- name: Upload test results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: Test and Coverage

path: |
build/junit.xml
build/coverage.xml
Expand Down
5 changes: 4 additions & 1 deletion .idea/misc.xml

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

3 changes: 3 additions & 0 deletions .idea/modules.xml

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

16 changes: 4 additions & 12 deletions .idea/mrmat-python-api-flask.iml

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

25 changes: 0 additions & 25 deletions .idea/runConfigurations/client.xml

This file was deleted.

25 changes: 0 additions & 25 deletions .idea/runConfigurations/cui.xml

This file was deleted.

40 changes: 0 additions & 40 deletions .idea/runConfigurations/db_current.xml

This file was deleted.

25 changes: 0 additions & 25 deletions .idea/runConfigurations/db_downgrade.xml

This file was deleted.

25 changes: 0 additions & 25 deletions .idea/runConfigurations/db_revision.xml

This file was deleted.

25 changes: 0 additions & 25 deletions .idea/runConfigurations/db_upgrade.xml

This file was deleted.

5 changes: 3 additions & 2 deletions .idea/runConfigurations/lint.xml

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

This file was deleted.

This file was deleted.

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
Loading