Skip to content

Commit

Permalink
Merge pull request #2011 from camptocamp/c2cciutils-upgrade
Browse files Browse the repository at this point in the history
CI updates
  • Loading branch information
sbrunner authored Oct 11, 2023
2 parents f3314f2 + 85e79a1 commit 2f73b18
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'pre-commit': { enabled: true },
regexManagers: [
{
fileMatch: ['^.pre-commit-config\\.yaml$'],
fileMatch: ['^\\.pre\\-commit\\-config\\.yaml$'],
matchStrings: [" +- '?(?<depName>[^' @=]+)(@|==)(?<currentValue>[^' @=]+)'? # (?<datasource>.+)"],
},
{
Expand All @@ -30,7 +30,7 @@
datasourceTemplate: 'github-tags',
},
{
fileMatch: ['^ci/dpkg-versions\\.yaml$'],
fileMatch: ['^ci/dpkg\\-versions\\.yaml$'],
matchStrings: [" *(?<depName>[^'\\s]+): '?(?<currentValue>[^'\\s/]*[0-9][^'\\s/]*)'?"],
datasourceTemplate: 'repology',
versioningTemplate: 'loose',
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/clean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
pull_request:
types:
- closed

jobs:
clean:
runs-on: ubuntu-22.04
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/dependency-auto-review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Auto reviews updates

on:
pull_request:
types:
- opened
- reopened

jobs:
auto-merge:
name: Auto reviews updates
runs-on: ubuntu-22.04
timeout-minutes: 5

steps:
- uses: actions/github-script@v6
with:
script: |-
github.rest.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
event: 'APPROVE',
})
if: github.event.pull_request.user.login == 'renovate[bot]'
22 changes: 0 additions & 22 deletions .github/workflows/dependency-update-review.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
SKIP: poetry-lock,isort
- run: git diff && false
if: failure()
- name: Checks
run: c2cciutils-checks
- name: Print environment information
run: c2cciutils-env

- name: Pull
run: make pull
Expand Down
1 change: 1 addition & 0 deletions ci/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ poetry-plugin-export==1.5.0
pre-commit==3.4.0
pytest==7.4.2
scikit-image==0.21.0
poetry-plugin-tweak-dependencies-version==1.5.1
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ prospector-profile-duplicated = "0.3.0"
requires = [
"poetry-core>=1.0.0",
"poetry-dynamic-versioning[plugin]",
"poetry-plugin-tweak-dependencies-version"
"poetry-plugin-tweak-dependencies-version",
"poetry-plugin-drop-python-upper-constraint"
]
build-backend = "poetry.core.masonry.api"

Expand Down

0 comments on commit 2f73b18

Please sign in to comment.