A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Resolve testing not running with the correct python version
Trenton H33e597f5bb0d
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex d0015fd49..c24dc61a2 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -13,6 +13,10 @@ on:branches-ignore:- 'translations**'+env:+ DEFAULT_PIP_ENV_VERSION: "2022.11.30"+ DEFAULT_PYTHON_VERSION: "3.9"+jobs:pre-commit:name: Linting Checks@@ -21,13 +25,11 @@ jobs:-name: Checkout repositoryuses: actions/checkout@v3--- name: Install tools+ name: Install pythonuses: actions/setup-python@v4with:- python-version: "3.9"-+ python-version: ${{ env.DEFAULT_PYTHON_VERSION }}-name: Check filesuses: pre-commit/[email protected]@@ -41,29 +43,30 @@ jobs:-name: Checkoutuses: actions/checkout@v3- -- name: Install pipenv- run: |- pipx install pipenv==2022.11.30-name: Set up Python+ id: setup-pythonuses: actions/setup-python@v4with:- python-version: 3.8+ python-version: ${{ env.DEFAULT_PYTHON_VERSION }}cache: "pipenv"cache-dependency-path: 'Pipfile.lock'+ -+ name: Install pipenv+ run: |+ pip install --user pipenv==${DEFAULT_PIP_ENV_VERSION}-name: Install dependenciesrun: |- pipenv sync --dev+ pipenv --python ${{ steps.setup-python.outputs.python-version }} sync --dev-name: List installed Python dependenciesrun: |- pipenv run pip list+ pipenv --python ${{ steps.setup-python.outputs.python-version }} run pip list-name: Make documentationrun: |- pipenv run mkdocs build --config-file ./mkdocs.yml+ pipenv --python ${{ steps.setup-python.outputs.python-version }} run mkdocs build --config-file ./mkdocs.yml-name: Upload artifactuses: actions/upload-artifact@v3@@ -121,17 +124,18 @@ jobs:run: |docker compose --file ${GITHUB_WORKSPACE}/docker/compose/docker-compose.ci-test.yml pull --quietdocker compose --file ${GITHUB_WORKSPACE}/docker/compose/docker-compose.ci-test.yml up --detach- -- name: Install pipenv- run: |- pipx install pipenv==2022.11.30-name: Set up Python+ id: setup-pythonuses: actions/setup-python@v4with:python-version: "${{ matrix.python-version }}"cache: "pipenv"cache-dependency-path: 'Pipfile.lock'+ -+ name: Install pipenv+ run: |+ pip install --user pipenv==${DEFAULT_PIP_ENV_VERSION}-name: Install system dependenciesrun: |@@ -140,16 +144,17 @@ jobs:-name: Install Python dependenciesrun: |- pipenv sync --dev+ pipenv --python ${{ steps.setup-python.outputs.python-version }} run python --version+ pipenv --python ${{ steps.setup-python.outputs.python-version }} sync --dev-name: List installed Python dependenciesrun: |- pipenv run pip list+ pipenv --python ${{ steps.setup-python.outputs.python-version }} run pip list-name: Testsrun: |cd src/- pipenv run pytest -ra+ pipenv --python ${{ steps.setup-python.outputs.python-version }} run pytest -ra-name: Get changed filesid: changed-files-specific@@ -165,13 +170,13 @@ jobs:done-name: Publish coverage results- if: matrix.python-version == '3.9' && steps.changed-files-specific.outputs.any_changed == 'true'+ if: matrix.python-version == ${{ env.DEFAULT_PYTHON_VERSION }} && steps.changed-files-specific.outputs.any_changed == 'true'env:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}# https://github.com/coveralls-clients/coveralls-python/issues/251run: |cd src/- pipenv run coveralls --service=github+ pipenv --python ${{ steps.setup-python.outputs.python-version }} run coveralls --service=github-name: Stop containersif: always()@@ -227,7 +232,7 @@ jobs:name: Set up Pythonuses: actions/setup-python@v4with:- python-version: "3.9"+ python-version: ${{ env.DEFAULT_PYTHON_VERSION }}-name: Setup qpdf imageid: qpdf-setup@@ -389,22 +394,22 @@ jobs:-name: Checkoutuses: actions/checkout@v3- -- name: Install pipenv- run: |- pip3 install --upgrade pip setuptools wheel pipx- pipx install pipenv-name: Set up Python+ id: setup-pythonuses: actions/setup-python@v4with:- python-version: 3.9+ python-version: ${{ env.DEFAULT_PYTHON_VERSION }}cache: "pipenv"cache-dependency-path: 'Pipfile.lock'+ -+ name: Install pipenv + tools+ run: |+ pip install --upgrade --user pipenv==${DEFAULT_PIP_ENV_VERSION} setuptools wheel-name: Install Python dependenciesrun: |- pipenv sync --dev+ pipenv --python ${{ steps.setup-python.outputs.python-version }} sync --dev-name: Install system dependenciesrun: |@@ -425,17 +430,17 @@ jobs:-name: Generate requirements filerun: |- pipenv requirements > requirements.txt+ pipenv --python ${{ steps.setup-python.outputs.python-version }} requirements > requirements.txt-name: Compile messagesrun: |cd src/- pipenv run python3 manage.py compilemessages+ pipenv --python ${{ steps.setup-python.outputs.python-version }} run python3 manage.py compilemessages-name: Collect static filesrun: |cd src/- pipenv run python3 manage.py collectstatic --no-input+ pipenv --python ${{ steps.setup-python.outputs.python-version }} run python3 manage.py collectstatic --no-input-name: Move filesrun: |@@ -522,18 +527,17 @@ jobs:uses: actions/checkout@v3with:ref: main- -- name: Install pipenv- run: |- pip3 install --upgrade pip setuptools wheel pipx- pipx install pipenv-name: Set up Pythonuses: actions/setup-python@v4with:- python-version: 3.9+ python-version: ${{ env.DEFAULT_PYTHON_VERSION }}cache: "pipenv"cache-dependency-path: 'Pipfile.lock'+ -+ name: Install pipenv + tools+ run: |+ pip install --upgrade --user pipenv==${DEFAULT_PIP_ENV_VERSION} setuptools wheel-name: Append Changelog to docsid: append-Changelog