Skip to content

Commit

Permalink
Fix the example project
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Apr 4, 2023
1 parent 0715a3d commit ba1061e
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 41 deletions.
2 changes: 1 addition & 1 deletion example-project/.github/workflows/auto-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
auto-merge:
name: Auto reviews updates
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 5

steps:
Expand Down
2 changes: 1 addition & 1 deletion example-project/.github/workflows/backport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:

jobs:
backport:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: Backport
timeout-minutes: 5

Expand Down
2 changes: 1 addition & 1 deletion example-project/.github/workflows/clean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: delete

jobs:
clean:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: Clean Docker hub tags
timeout-minutes: 5

Expand Down
29 changes: 0 additions & 29 deletions example-project/.github/workflows/codeql.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 25
name: Delete old workflow runs

Expand Down
14 changes: 13 additions & 1 deletion example-project/.github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:

jobs:
main:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: Continuous integration
timeout-minutes: 20
if: "!startsWith(github.event.head_commit.message, '[skip ci] ')"
Expand All @@ -35,6 +35,18 @@ jobs:
- run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH}
- run: python3 -m pip install --user --requirement=ci/requirements.txt

- uses: actions/cache@v3
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
env:
SKIP: poetry-lock
if: matrix.python-version != '3.7'
- run: git diff && false
if: failure()

- name: Checks
run: c2cciutils-checks

Expand Down
4 changes: 2 additions & 2 deletions example-project/.github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ on:
- reopened
- labeled
- unlabeled
- edit
- edited
- synchronize

jobs:
build:
name: Pull request check
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 5

steps:
Expand Down
1 change: 1 addition & 0 deletions example-project/ci/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
c2cciutils[checks,publish]==1.5.2
pre-commit==3.2.1
6 changes: 1 addition & 5 deletions example-project/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ line-length = 110
target-version = ['py38']

[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = false
use_parentheses = true
line_length = 110
profile = "black"

[tool.mypy]
python_version = 3.8
Expand Down

0 comments on commit ba1061e

Please sign in to comment.