diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 070bcec..f92b3b3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ name: Build env: MAJOR: 0 MINOR: 0 - PYTHON_VERSION: 3.10.1 + PYTHON_VERSION: 3.11.0 # # Establish when the workflow is run @@ -44,7 +44,7 @@ jobs: - name: Calculate Build Context run: | MRMAT_VERSION="${MAJOR}.${MINOR}.${GITHUB_RUN_NUMBER}" - if [ "$GITHUB_EVENT_NAME" == 'pull_request_target' && GITHUB_BASE_REF == 'main']; then + if [ "$GITHUB_EVENT_NAME" == 'pull_request_target' -a "$GITHUB_BASE_REF" == 'main' ]; then MRMAT_IS_RELEASE=true echo "::warning ::Building release ${MRMAT_VERSION}" echo "MRMAT_IS_RELEASE=true" >> $GITHUB_ENV @@ -69,12 +69,10 @@ jobs: - name: Build run: | - export PYTHONUSERBASE=${HOME}/.local - pip install --user wheel pip install --user -r requirements.txt - ${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 + pylint ${GITHUB_WORKSPACE}/src/python/mrmat_python_api_flask + PYTHONPATH=${GITHUB_WORKSPACE}/src/python python -m pytest + python -m build --wheel -n - name: Upload test results uses: actions/upload-artifact@v2 diff --git a/.gitignore b/.gitignore index ba552da..0557764 100644 --- a/.gitignore +++ b/.gitignore @@ -159,10 +159,6 @@ coverage.xml .pytest_cache/ pytestdebug.log -# Translations -*.mo -*.pot - # Django stuff: *.log local_settings.py @@ -245,6 +241,3 @@ dmypy.json .prof # End of https://www.toptal.com/developers/gitignore/api/jetbrains,python - - -.coverage diff --git a/.idea/misc.xml b/.idea/misc.xml index 4ea37de..71f34c9 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - +