Skip to content

Commit

Permalink
Update from base branch
Browse files Browse the repository at this point in the history
From the artifact of the previous workflow run
  • Loading branch information
geo-ghci-int[bot] committed Aug 8, 2024
1 parent 4abc283 commit f274e99
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 238 deletions.
6 changes: 0 additions & 6 deletions .UPGRADE_INSTRUCTIONS

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Pre commit

on:
push:

jobs:
main:
name: Pre commit
runs-on: ubuntu-22.04
timeout-minutes: 20

steps:
- uses: actions/checkout@v4

- run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH}
- run: python3 -m pip install --user --requirement=ci/requirements.txt

- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
restore-keys: "pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}\npre-commit-"
- run: pre-commit run --all-files
- run: git diff --exit-code --patch > /tmp/pre-commit.patch || true
if: failure()
- uses: actions/upload-artifact@v4
with:
name: Apply pre-commit fix.patch
path: /tmp/pre-commit.patch
retention-days: 1
if: failure()
61 changes: 0 additions & 61 deletions .upgrade.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ checks: prospector eslint ## Runs the checks

.PHONY: prospector
prospector: ## Runs the Prospector checks
docker-compose run --entrypoint= --no-deps --rm --volume=$(CURDIR)/geoportal:/app geoportal \
docker compose run --entrypoint= --no-deps --rm --volume=$(CURDIR)/geoportal:/app geoportal \
prospector --output-format=pylint --die-on-tool-error

.PHONY: eslint
Expand Down
1 change: 0 additions & 1 deletion ci/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
c2cciutils[checks,publish]==1.6.22
pre-commit==3.8.0
26 changes: 0 additions & 26 deletions create.diff

This file was deleted.

143 changes: 0 additions & 143 deletions upgrade

This file was deleted.

0 comments on commit f274e99

Please sign in to comment.