Spaces:
Sleeping
Sleeping
Add tests to CI/CD (#86)
Browse files- .github/workflows/ci-cd.yaml +38 -0
- .lycheeignore +1 -0
- .mdlrc +2 -0
- .yamllint +23 -0
- README.md +12 -7
- markdownlint.rb +20 -0
.github/workflows/ci-cd.yaml
CHANGED
@@ -19,8 +19,46 @@ on:
|
|
19 |
push:
|
20 |
branches: [master]
|
21 |
|
|
|
|
|
|
|
22 |
jobs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
sync-to-huggingface-space:
|
|
|
24 |
if: github.ref == 'refs/heads/master'
|
25 |
runs-on: ubuntu-latest
|
26 |
steps:
|
|
|
19 |
push:
|
20 |
branches: [master]
|
21 |
|
22 |
+
env:
|
23 |
+
PYTHON_VERSION: "3.10"
|
24 |
+
|
25 |
jobs:
|
26 |
+
cancel-previous:
|
27 |
+
name: Cancel Previous Runs In Order to Allocate Action Resources Immediately for Current Run
|
28 |
+
if: github.ref != 'refs/heads/master'
|
29 |
+
runs-on: ubuntu-latest
|
30 |
+
steps:
|
31 |
+
- name: Cancel previous
|
32 |
+
uses: styfle/cancel-workflow-action@0.10.1
|
33 |
+
with:
|
34 |
+
access_token: ${{ github.token }}
|
35 |
+
|
36 |
+
yaml-lint:
|
37 |
+
name: YAML Style Check
|
38 |
+
runs-on: ubuntu-latest
|
39 |
+
steps:
|
40 |
+
- uses: actions/checkout@v3
|
41 |
+
- uses: actionshub/yamllint@main
|
42 |
+
|
43 |
+
markdown-lint:
|
44 |
+
name: Markdown Style Check
|
45 |
+
runs-on: ubuntu-latest
|
46 |
+
steps:
|
47 |
+
- uses: actions/checkout@v3
|
48 |
+
- uses: actionshub/markdownlint@main
|
49 |
+
|
50 |
+
linkChecker:
|
51 |
+
name: Link Check
|
52 |
+
runs-on: ubuntu-latest
|
53 |
+
steps:
|
54 |
+
- uses: actions/checkout@v3
|
55 |
+
- name: Link Checker
|
56 |
+
uses: lycheeverse/lychee-action@v1.9.0
|
57 |
+
with:
|
58 |
+
fail: true
|
59 |
+
|
60 |
sync-to-huggingface-space:
|
61 |
+
needs: [yaml-lint, markdown-lint, linkChecker]
|
62 |
if: github.ref == 'refs/heads/master'
|
63 |
runs-on: ubuntu-latest
|
64 |
steps:
|
.lycheeignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
http://localhost:7860
|
.mdlrc
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
rules "~MD002", "~MD003", "~MD005", "~MD007", "~MD013", "~MD022", "~MD024", "~MD027", "~MD028", "~MD029", "~MD033", "~MD034", "~MD036", "~MD041", "~MD055", "~MD057"
|
2 |
+
style "#{File.dirname(__FILE__)}/markdownlint.rb"
|
.yamllint
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
extends: default
|
3 |
+
rules:
|
4 |
+
line-length:
|
5 |
+
max: 256
|
6 |
+
level: warning
|
7 |
+
document-start: disable
|
8 |
+
braces:
|
9 |
+
forbid: false
|
10 |
+
min-spaces-inside: 0
|
11 |
+
max-spaces-inside: 1
|
12 |
+
min-spaces-inside-empty: -1
|
13 |
+
max-spaces-inside-empty: -1
|
14 |
+
commas:
|
15 |
+
max-spaces-before: -1
|
16 |
+
min-spaces-after: 1
|
17 |
+
max-spaces-after: -1
|
18 |
+
brackets:
|
19 |
+
max-spaces-inside: -1
|
20 |
+
empty-lines:
|
21 |
+
max: 3
|
22 |
+
indentation:
|
23 |
+
spaces: 2
|
README.md
CHANGED
@@ -37,7 +37,7 @@ One morning I was studying German with the famous German WW2 movie
|
|
37 |
[_Generation War_](https://youtu.be/8s_0QteDapc?si=usMdIbY5Skfz0u1q). Managing to find its subtitles[^1][^2][^3] were
|
38 |
easy for me. A problem, however, soon arose as I proceeded with them: _the subtitles had errors - missing couple of
|
39 |
phrases every few other lines_. This was a big NO for language learners like me. In old days 10 years ago, I would've
|
40 |
-
reached a dead end...
|
41 |
|
42 |
[^1]: https://www.opensubtitles.org/en/subtitles/6243166/generation-war-eine-andere-zeit-de
|
43 |
[^2]: https://www.opensubtitles.org/en/subtitles/6243167/generation-war-ein-anderer-krieg-de
|
@@ -51,23 +51,28 @@ Being so excited, I decided to industrialize this process and hereby present it
|
|
51 |
__AI movie transcription service that targets specifically for language learners__
|
52 |
|
53 |
> [!NOTE]
|
54 |
-
>
|
55 |
> On name "__Tiger__"
|
56 |
>
|
57 |
> The project name _tiger_ was taken from the _German heavy tank of World War II -
|
58 |
> [Tiger I](https://tanks-encyclopedia.com/ww2/germany/panzer-vi_tiger.php#index17)_.
|
59 |
-
>
|
60 |
> I chose this name because the project idea was spawned from the study of German language. More importantly, _Tiger I_
|
61 |
-
> has been widely recognized as a revolutionary tank being a crown jewels in the history of warfare technology:
|
62 |
-
>
|
63 |
> > _"It is tempting to view the appearance of the Tiger tank as revolutionary, ... the end result was a machine that
|
64 |
> > represented a quantum leap forward in tank design and changed everything - forever"_[^4]
|
65 |
-
>
|
66 |
> As _Tiger_ had steered the direction of next-generation heavy tank, this project has also revolutionized my view
|
67 |
> toward AI subconsciously and serves as an empirical guide on how I should make NLP more powerful for people with AI.
|
68 |
|
69 |
[^4]: _[Tiger tank : Panzerkampfwagen VI Tiger I Ausf. E (SdKfz 181): owner's workshop manual](https://a.co/d/28OzPsK)_, The Tank Museum, 2011. p.13
|
70 |
|
|
|
|
|
|
|
|
|
|
|
71 |
[Apache License Badge]: https://img.shields.io/badge/Apache%202.0-F25910.svg?style=for-the-badge&logo=Apache&logoColor=white
|
72 |
[Apache License, Version 2.0]: https://www.apache.org/licenses/LICENSE-2.0
|
73 |
|
@@ -77,4 +82,4 @@ __AI movie transcription service that targets specifically for language learners
|
|
77 |
[Hugging Face sync status badge]: https://img.shields.io/github/actions/workflow/status/QubitPi/tiger/ci-cd.yaml?branch=master&style=for-the-badge&logo=github&logoColor=white&label=Hugging%20Face%20Sync%20Up
|
78 |
[Hugging Face sync status URL]: https://github.com/QubitPi/tiger/actions/workflows/ci-cd.yaml
|
79 |
|
80 |
-
[Project Tiger on Hugging Face]: https://huggingface.co/spaces/QubitPi/tiger
|
|
|
37 |
[_Generation War_](https://youtu.be/8s_0QteDapc?si=usMdIbY5Skfz0u1q). Managing to find its subtitles[^1][^2][^3] were
|
38 |
easy for me. A problem, however, soon arose as I proceeded with them: _the subtitles had errors - missing couple of
|
39 |
phrases every few other lines_. This was a big NO for language learners like me. In old days 10 years ago, I would've
|
40 |
+
reached a dead end...
|
41 |
|
42 |
[^1]: https://www.opensubtitles.org/en/subtitles/6243166/generation-war-eine-andere-zeit-de
|
43 |
[^2]: https://www.opensubtitles.org/en/subtitles/6243167/generation-war-ein-anderer-krieg-de
|
|
|
51 |
__AI movie transcription service that targets specifically for language learners__
|
52 |
|
53 |
> [!NOTE]
|
54 |
+
>
|
55 |
> On name "__Tiger__"
|
56 |
>
|
57 |
> The project name _tiger_ was taken from the _German heavy tank of World War II -
|
58 |
> [Tiger I](https://tanks-encyclopedia.com/ww2/germany/panzer-vi_tiger.php#index17)_.
|
59 |
+
>
|
60 |
> I chose this name because the project idea was spawned from the study of German language. More importantly, _Tiger I_
|
61 |
+
> has been widely recognized as a revolutionary tank being a crown jewels in the history of warfare technology:
|
62 |
+
>
|
63 |
> > _"It is tempting to view the appearance of the Tiger tank as revolutionary, ... the end result was a machine that
|
64 |
> > represented a quantum leap forward in tank design and changed everything - forever"_[^4]
|
65 |
+
>
|
66 |
> As _Tiger_ had steered the direction of next-generation heavy tank, this project has also revolutionized my view
|
67 |
> toward AI subconsciously and serves as an empirical guide on how I should make NLP more powerful for people with AI.
|
68 |
|
69 |
[^4]: _[Tiger tank : Panzerkampfwagen VI Tiger I Ausf. E (SdKfz 181): owner's workshop manual](https://a.co/d/28OzPsK)_, The Tank Museum, 2011. p.13
|
70 |
|
71 |
+
License
|
72 |
+
-------
|
73 |
+
|
74 |
+
The use and distribution terms for [tiger]() are covered by the [Apache License, Version 2.0].
|
75 |
+
|
76 |
[Apache License Badge]: https://img.shields.io/badge/Apache%202.0-F25910.svg?style=for-the-badge&logo=Apache&logoColor=white
|
77 |
[Apache License, Version 2.0]: https://www.apache.org/licenses/LICENSE-2.0
|
78 |
|
|
|
82 |
[Hugging Face sync status badge]: https://img.shields.io/github/actions/workflow/status/QubitPi/tiger/ci-cd.yaml?branch=master&style=for-the-badge&logo=github&logoColor=white&label=Hugging%20Face%20Sync%20Up
|
83 |
[Hugging Face sync status URL]: https://github.com/QubitPi/tiger/actions/workflows/ci-cd.yaml
|
84 |
|
85 |
+
[Project Tiger on Hugging Face]: https://huggingface.co/spaces/QubitPi/tiger
|
markdownlint.rb
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright Jiaqi Liu
|
2 |
+
#
|
3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4 |
+
# you may not use this file except in compliance with the License.
|
5 |
+
# You may obtain a copy of the License at
|
6 |
+
#
|
7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8 |
+
#
|
9 |
+
# Unless required by applicable law or agreed to in writing, software
|
10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12 |
+
# See the License for the specific language governing permissions and
|
13 |
+
# limitations under the License.
|
14 |
+
|
15 |
+
all
|
16 |
+
rule 'MD003', style: :setext_with_atx
|
17 |
+
rule 'MD004', style: :sublist
|
18 |
+
rule 'MD013', line_length: 120
|
19 |
+
rule 'MD029', style: :ordered
|
20 |
+
rule 'MD026', punctuation: ".,;:!?"
|