jobs:
pre-commit:
name: Linting Checks
- runs-on: ubuntu-latest
+ runs-on: ubuntu-22.04
steps:
-
name: Checkout repository
documentation:
name: "Build Documentation"
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
needs:
- pre-commit
steps:
-
name: Install pipenv
run: |
- pipx install pipenv==2022.10.12
+ pipx install pipenv==2022.11.30
-
name: Set up Python
uses: actions/setup-python@v4
documentation-deploy:
name: "Deploy Documentation"
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs:
- documentation
tests-backend:
name: "Tests (${{ matrix.python-version }})"
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
needs:
- pre-commit
strategy:
-
name: Install pipenv
run: |
- pipx install pipenv==2022.10.12
+ pipx install pipenv==2022.11.30
-
name: Set up Python
uses: actions/setup-python@v4
tests-frontend:
name: "Tests Frontend"
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
needs:
- pre-commit
strategy:
prepare-docker-build:
name: Prepare Docker Pipeline Data
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/heads/feature-') || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/beta' || contains(github.ref, 'beta.rc') || startsWith(github.ref, 'refs/tags/v'))
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
# If the push triggered the installer library workflow, wait for it to
# complete here. This ensures the required versions for the final
# image have been built, while not waiting at all if the versions haven't changed
# build and push image to docker hub.
build-docker-image:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-build-docker-image-${{ github.ref_name }}
cancel-in-progress: true
build-release:
needs:
- build-docker-image
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
steps:
-
name: Checkout
path: dist/paperless-ngx.tar.xz
publish-release:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
outputs:
prerelease: ${{ steps.get_version.outputs.prerelease }}
changelog: ${{ steps.create-release.outputs.body }}
asset_content_type: application/x-xz
append-changelog:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
needs:
- publish-release
if: needs.publish-release.outputs.prerelease == 'false'
jobs:
issue_opened_or_reopened:
name: issue_opened_or_reopened
- runs-on: ubuntu-latest
+ runs-on: ubuntu-22.04
if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'reopened')
steps:
- name: Add issue to project and set status to ${{ env.todo }}
status_value: ${{ env.todo }} # Target status
pr_opened_or_reopened:
name: pr_opened_or_reopened
- runs-on: ubuntu-latest
+ runs-on: ubuntu-22.04
permissions:
# write permission is required for autolabeler
pull-requests: write
RUN set -eux \
&& echo "Installing pipenv" \
- && python3 -m pip install --no-cache-dir --upgrade pipenv==2022.10.12 \
+ && python3 -m pip install --no-cache-dir --upgrade pipenv==2022.11.30 \
&& echo "Generating requirement.txt" \
&& pipenv requirements > requirements.txt