Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Updates GHA to use the setup-python pipenv caching

Trenton Holmes58066443de62
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 501a80adf..abf7a0ce0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -106,34 +106,30 @@ jobs:
-
name: Checkout
uses: actions/checkout@v2
+ -
+ name: Install pipenv
+ run: pip install pipenv
-
name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "${{ matrix.python-version }}"
+ cache: "pipenv"
-
- name: Get pip cache dir
- id: pip-cache
- run: |
- echo "::set-output name=dir::$(pip cache dir)"
- -
- name: Persistent Github pip cache
- uses: actions/cache@v2
- with:
- path: ${{ steps.pip-cache.outputs.dir }}
- key: ${{ runner.os }}-pip${{ matrix.python-version }}
- -
- name: Install dependencies
+ name: Install system dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -qq --no-install-recommends unpaper tesseract-ocr imagemagick ghostscript optipng
+ -
+ name: Install Python dependencies
+ run: |
pip install --upgrade pipenv
- pipenv install --system --dev --ignore-pipfile
+ pipenv install --dev --ignore-pipfile
-
name: Tests
run: |
cd src/
- pytest
+ pipenv run pytest
-
name: Publish coverage results
if: matrix.python-version == '3.9'
@@ -325,4 +321,4 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./paperless-ngx.tar.xz
asset_name: paperless-ngx-${{ steps.get_version.outputs.version }}.tar.xz
- asset_content_type: application/x-xz
\ No newline at end of file
+ asset_content_type: application/x-xz