Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Oct 9, 2024
1 parent 6c4b9d7 commit e54ed6f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
7 changes: 4 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
---
version: 2

updates:
- package-ecosystem: pip
directory: "/"
directory: /
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
schedule:
# * is a special character in YAML so you have to quote this string
# Run at 1:00 every day
- cron: '0 1 * * *'
- cron: 0 1 * * *

jobs:
build:
Expand All @@ -19,16 +19,16 @@ jobs:

strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
uv-resolution: ["highest", "lowest-direct"]
python-version: ['3.10', '3.11', '3.12']
uv-resolution: [highest, lowest-direct]

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3

- name: "Lint"
- name: Lint
run: |
uv run --extra=dev pre-commit run --all-files --hook-stage pre-commit --verbose
uv run --extra=dev pre-commit run --all-files --hook-stage pre-push --verbose
Expand All @@ -37,29 +37,29 @@ jobs:
UV_PYTHON: ${{ matrix.python-version }}
UV_RESOLUTION: ${{ matrix.uv-resolution }}

- name: "Build sample"
- name: Build sample
run: |
make build-sample
env:
UV_PYTHON: ${{ matrix.python-version }}
UV_RESOLUTION: ${{ matrix.uv-resolution }}

- name: "Build sample parallel"
- name: Build sample parallel
run: |
make build-sample-parallel
env:
UV_PYTHON: ${{ matrix.python-version }}
UV_RESOLUTION: ${{ matrix.uv-resolution }}

- name: "Run tests"
- name: Run tests
run: |
uv run --extra=dev pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests . --cov-report=xml
env:
UV_PYTHON: ${{ matrix.python-version }}
UV_RESOLUTION: ${{ matrix.uv-resolution }}

- name: "Upload coverage to Codecov"
uses: "codecov/codecov-action@v4"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

strategy:
matrix:
python-version: ["3.12"]
python-version: ['3.12']

steps:
- uses: actions/checkout@v4
Expand All @@ -34,11 +34,11 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v3

- name: "Calver calculate version"
- name: Calver calculate version
uses: StephaneBour/actions-calver@master
id: calver
with:
date_format: "%Y.%m.%d"
date_format: '%Y.%m.%d'
release: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -49,12 +49,13 @@ jobs:
underline="$(echo "${{ steps.calver.outputs.release }}" | tr -c '\n' '-')"
echo "underline=${underline}" >> "$GITHUB_OUTPUT"
- name: "Update changelog"
- name: Update changelog
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "Next\n----"
replace: "Next\n----\n\n${{ steps.calver.outputs.release }}\n${{ steps.changelog_underline.outputs.underline }}"
include: "CHANGELOG.rst"
replace: "Next\n----\n\n${{ steps.calver.outputs.release }}\n${{ steps.changelog_underline.outputs.underline\
\ }}"
include: CHANGELOG.rst
regex: false

- uses: stefanzweifel/git-auto-commit-action@v5
Expand All @@ -69,7 +70,7 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.calver.outputs.release }}
tag_prefix: ""
tag_prefix: ''
commit_sha: ${{ steps.commit.outputs.commit_hash }}

- name: Create a GitHub release
Expand Down

0 comments on commit e54ed6f

Please sign in to comment.