Skip to content

Commit 89251ba

Browse files
committed
v0.1.0
0 parents  commit 89251ba

15 files changed

+1501
-0
lines changed

.github/dependabot.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: daily
7+
time: "04:30"
8+
- package-ecosystem: pip
9+
directory: /
10+
schedule:
11+
interval: daily
12+
time: "04:30"

.github/workflows/auto-merge.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Auto-merge updates
2+
on: pull_request
3+
permissions:
4+
contents: write
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.head_ref }}
7+
cancel-in-progress: true
8+
jobs:
9+
auto-merge-dependabot:
10+
runs-on: ubuntu-latest
11+
if: ${{ github.actor == 'dependabot[bot]' }}
12+
steps:
13+
- id: dependabot-metadata
14+
uses: dependabot/fetch-metadata@v1
15+
- if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
16+
run: gh pr merge --auto --delete-branch --squash "${PR_URL}"
17+
env:
18+
PR_URL: ${{ github.event.pull_request.html_url }}
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
auto-merge-updates:
21+
runs-on: ubuntu-latest
22+
if: ${{ github.actor == 'monosans' && startsWith(github.head_ref, 'update/') }}
23+
steps:
24+
- run: gh pr merge --auto --delete-branch --squash "${PR_URL}"
25+
env:
26+
PR_URL: ${{ github.event.pull_request.html_url }}
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ci.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
workflow_dispatch:
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
10+
cancel-in-progress: true
11+
jobs:
12+
run-pre-commit:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- run: pipx run pre-commit run --all-files

.github/workflows/publish.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Publish
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
jobs:
7+
publish-pypi:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
id-token: write
11+
steps:
12+
- uses: actions/checkout@v3
13+
- run: pipx run poetry build --no-interaction
14+
- uses: pypa/gh-action-pypi-publish@release/v1
+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Update dependencies
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: 0 6 * * *
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
jobs:
10+
update-dependencies:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
include:
15+
- cmd: pipx run poetry lock --no-interaction
16+
commit-msg: Update poetry.lock
17+
branch: update/poetry-lock
18+
- cmd: pipx run pre-commit autoupdate
19+
commit-msg: Update .pre-commit-config.yaml
20+
branch: update/pre-commit-config
21+
steps:
22+
- uses: actions/checkout@v3
23+
- run: ${{ matrix.cmd }}
24+
- uses: peter-evans/create-pull-request@v5
25+
with:
26+
token: ${{ secrets.PAT }}
27+
commit-message: ${{ matrix.commit-msg }}
28+
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
29+
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
30+
branch: ${{ matrix.branch }}
31+
title: ${{ matrix.commit-msg }}
32+
body:

0 commit comments

Comments
 (0)