Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit ac38f0d

Browse files
1.4.1 (#15)
* ci: generate release notes, restrict test branch * ci: add @no-test * proj: use poetry dependency group style * doc(readme): update badge * ci: restrict trigger condition Co-authored-by: JamzumSum <zzzzss990315@gmail.com>
1 parent 9146764 commit ac38f0d

File tree

6 files changed

+131
-100
lines changed

6 files changed

+131
-100
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@ jobs:
3636
- uses: softprops/action-gh-release@v1
3737
with:
3838
files: dist/*
39-
prerelease: true
4039
tag_name: ${{ steps.build.outputs.version }}
40+
name: ${{ steps.build.outputs.version }}
41+
generate_release_notes: true

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,18 @@ name: Test
55

66
on:
77
push:
8+
branches:
9+
- dev
10+
- dev/**
11+
paths:
12+
- src/**
13+
- poetry.lock
14+
- .github/workflows/ci.yml
815

916
jobs:
1017
test:
1118
runs-on: ubuntu-latest
19+
if: "!contains(github.event.head_commit.message, '@no-test')"
1220
strategy:
1321
matrix:
1422
python-version: ["3.10", "3.7"]
@@ -43,6 +51,7 @@ jobs:
4351
4452
merge:
4553
runs-on: ubuntu-latest
54+
if: "!contains(github.event.head_commit.message, '@no-pr')"
4655
needs: test
4756
steps:
4857
- uses: actions/checkout@v3

.pre-commit-config.yaml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
3+
fail_fast: true
34
repos:
45
- repo: https://github.com/pre-commit/pre-commit-hooks
56
rev: v4.3.0
@@ -8,15 +9,36 @@ repos:
89
- id: end-of-file-fixer
910
- id: check-yaml
1011
- id: check-added-large-files
11-
- id: check-toml
12-
- repo: https://github.com/pycqa/isort
13-
rev: 5.10.1
12+
- repo: local
1413
hooks:
14+
- id: poetry
15+
name: poetry check
16+
entry: poetry check
17+
pass_filenames: false
18+
language: system
19+
files: pyproject.toml
20+
- id: poetry
21+
name: poetry lock
22+
entry: poetry lock -v
23+
pass_filenames: false
24+
language: system
1525
- id: isort
1626
name: isort (python)
17-
- repo: https://github.com/psf/black
18-
rev: 22.8.0
19-
hooks:
27+
entry: poetry run isort .
28+
pass_filenames: false
29+
language: system
30+
types: [python]
2031
- id: black
32+
name: Black
33+
entry: poetry run black .
34+
pass_filenames: false
35+
language: system
36+
types: [python]
37+
- id: pytest
38+
name: pytest-check
39+
entry: poetry run pytest test
40+
language: system
41+
pass_filenames: false
42+
types: [python]
2143
default_language_version:
2244
python: python3

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Update assets from network. This repo is a component of [QzEmoji][qzemoji].
44

55
[![python](https://img.shields.io/badge/python-%E2%89%A53.7%2C%3C4.0-blue)][homepage]
6-
[![Test](https://github.com/JamzumSum/AssetsUpdater/actions/workflows/test.yml/badge.svg)](https://github.com/JamzumSum/AssetsUpdater/actions/workflows/test.yml)
6+
[![Test](https://github.com/JamzumSum/AssetsUpdater/actions/workflows/ci.yml/badge.svg)](https://github.com/JamzumSum/AssetsUpdater/actions/workflows/ci.yml)
77
[![Release](https://img.shields.io/github/v/release/JamzumSum/AssetsUpdater?include_prereleases&logo=github)](https://github.com/JamzumSum/AssetsUpdater/releases)
88

99

0 commit comments

Comments
 (0)