nevreal commited on
Commit
c22654e
·
verified ·
1 Parent(s): b17254d

Delete .github

Browse files
.github/PULL_REQUEST_TEMPLATE.md DELETED
@@ -1,26 +0,0 @@
1
- # Pull request checklist
2
-
3
- - [ ] The PR has a proper title. Use [Semantic Commit Messages](https://seesparkbox.com/foundry/semantic_commit_messages). (No more branch-name title please)
4
- - [ ] Make sure this is ready to be merged into the relevant branch. Please don't create a PR and let it hang for a few days.
5
- - [ ] Ensure you can run the codes you submitted succesfully. These submissions will be prioritized for review:
6
-
7
- Introduce improvements in program execution speed;
8
-
9
- Introduce improvements in synthesis quality;
10
-
11
- Fix existing bugs reported by user feedback (or you met);
12
-
13
- Introduce more convenient user operations.
14
-
15
- # PR type
16
-
17
- - Bug fix / new feature / synthesis quality improvement / program execution speed improvement
18
-
19
- # Description
20
-
21
- - Describe what this pull request is for.
22
- - What will it affect.
23
-
24
- # Screenshot
25
-
26
- - Please include a screenshot if applicable
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.github/workflows/docker.yml DELETED
@@ -1,70 +0,0 @@
1
- name: Build and Push Docker Image
2
-
3
- on:
4
- workflow_dispatch:
5
- push:
6
- # Sequence of patterns matched against refs/tags
7
- tags:
8
- - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
9
-
10
- jobs:
11
- build:
12
- runs-on: ubuntu-latest
13
- permissions:
14
- packages: write
15
- contents: read
16
- steps:
17
- - uses: actions/checkout@v3
18
- - name: Set time zone
19
- uses: szenius/set-timezone@v1.0
20
- with:
21
- timezoneLinux: "Asia/Shanghai"
22
- timezoneMacos: "Asia/Shanghai"
23
- timezoneWindows: "China Standard Time"
24
-
25
- # # 如果有 dockerhub 账户,可以在github的secrets中配置下面两个,然后取消下面注释的这几行,并在meta步骤的images增加一行 ${{ github.repository }}
26
- # - name: Login to DockerHub
27
- # uses: docker/login-action@v1
28
- # with:
29
- # username: ${{ secrets.DOCKERHUB_USERNAME }}
30
- # password: ${{ secrets.DOCKERHUB_TOKEN }}
31
-
32
- - name: Login to GHCR
33
- uses: docker/login-action@v2
34
- with:
35
- registry: ghcr.io
36
- username: ${{ github.repository_owner }}
37
- password: ${{ secrets.GITHUB_TOKEN }}
38
-
39
- - name: Extract metadata (tags, labels) for Docker
40
- id: meta
41
- uses: docker/metadata-action@v4
42
- with:
43
- images: |
44
- ghcr.io/${{ github.repository }}
45
- # generate Docker tags based on the following events/attributes
46
- # nightly, master, pr-2, 1.2.3, 1.2, 1
47
- tags: |
48
- type=schedule,pattern=nightly
49
- type=edge
50
- type=ref,event=branch
51
- type=ref,event=pr
52
- type=semver,pattern={{version}}
53
- type=semver,pattern={{major}}.{{minor}}
54
- type=semver,pattern={{major}}
55
-
56
- - name: Set up QEMU
57
- uses: docker/setup-qemu-action@v2
58
-
59
- - name: Set up Docker Buildx
60
- uses: docker/setup-buildx-action@v2
61
-
62
- - name: Build and push
63
- id: docker_build
64
- uses: docker/build-push-action@v4
65
- with:
66
- context: .
67
- platforms: linux/amd64,linux/arm64
68
- push: true
69
- tags: ${{ steps.meta.outputs.tags }}
70
- labels: ${{ steps.meta.outputs.labels }}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.github/workflows/genlocale.yml DELETED
@@ -1,38 +0,0 @@
1
- name: Generate and Sync Locale
2
- on:
3
- push:
4
- branches:
5
- - main
6
- - dev
7
- jobs:
8
- genlocale:
9
- runs-on: ubuntu-latest
10
- steps:
11
- - uses: actions/checkout@master
12
-
13
- - name: Run locale generation
14
- run: |
15
- python3 i18n/scan_i18n.py
16
- cd i18n
17
- python3 locale_diff.py
18
-
19
- - name: Commit back
20
- if: ${{ !github.head_ref }}
21
- id: commitback
22
- continue-on-error: true
23
- run: |
24
- git config --local user.name 'github-actions[bot]'
25
- git config --local user.email 'github-actions[bot]@users.noreply.github.com'
26
- git add --all
27
- git commit -m "chore(i18n): sync locale on ${{github.ref_name}}"
28
-
29
- - name: Create Pull Request
30
- if: steps.commitback.outcome == 'success'
31
- continue-on-error: true
32
- uses: peter-evans/create-pull-request@v5
33
- with:
34
- delete-branch: true
35
- body: "Automatically sync i18n translation jsons"
36
- title: "chore(i18n): sync locale on ${{github.ref_name}}"
37
- commit-message: "chore(i18n): sync locale on ${{github.ref_name}}"
38
- branch: genlocale-${{github.ref_name}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.github/workflows/pull_format.yml DELETED
@@ -1,48 +0,0 @@
1
- name: Check Pull Format
2
-
3
- on:
4
- pull_request_target:
5
- types: [opened, reopened]
6
-
7
- jobs:
8
- # This workflow closes invalid PR
9
- close_pr:
10
- # The type of runner that the job will run on
11
- runs-on: ubuntu-latest
12
- permissions: write-all
13
-
14
- # Steps represent a sequence of tasks that will be executed as part of the job
15
- steps:
16
- - name: Close PR if it is not pointed to dev branch
17
- if: github.event.pull_request.base.ref != 'dev'
18
- uses: superbrothers/close-pull-request@v3
19
- with:
20
- # Optional. Post a issue comment just before closing a pull request.
21
- comment: "Invalid PR to `non-dev` branch `${{ github.event.pull_request.base.ref }}`."
22
-
23
- pull_format:
24
- runs-on: ubuntu-latest
25
- permissions:
26
- contents: write
27
-
28
- continue-on-error: true
29
-
30
- steps:
31
- - name: Checkout
32
- continue-on-error: true
33
- uses: actions/checkout@v3
34
- with:
35
- ref: ${{ github.head_ref }}
36
- fetch-depth: 0
37
-
38
- - name: Set up Python ${{ matrix.python-version }}
39
- uses: actions/setup-python@v4
40
- with:
41
- python-version: ${{ matrix.python-version }}
42
-
43
- - name: Install Black
44
- run: pip install "black[jupyter]"
45
-
46
- - name: Run Black
47
- # run: black $(git ls-files '*.py')
48
- run: black .
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.github/workflows/push_format.yml DELETED
@@ -1,52 +0,0 @@
1
- name: Standardize Code Format
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
- - dev
8
-
9
- jobs:
10
- push_format:
11
- runs-on: ubuntu-latest
12
-
13
- permissions:
14
- contents: write
15
- pull-requests: write
16
-
17
- steps:
18
- - uses: actions/checkout@v3
19
- with:
20
- ref: ${{github.ref_name}}
21
-
22
- - name: Set up Python ${{ matrix.python-version }}
23
- uses: actions/setup-python@v4
24
- with:
25
- python-version: ${{ matrix.python-version }}
26
-
27
- - name: Install Black
28
- run: pip install "black[jupyter]"
29
-
30
- - name: Run Black
31
- # run: black $(git ls-files '*.py')
32
- run: black .
33
-
34
- - name: Commit Back
35
- continue-on-error: true
36
- id: commitback
37
- run: |
38
- git config --local user.email "github-actions[bot]@users.noreply.github.com"
39
- git config --local user.name "github-actions[bot]"
40
- git add --all
41
- git commit -m "chore(format): run black on ${{github.ref_name}}"
42
-
43
- - name: Create Pull Request
44
- if: steps.commitback.outcome == 'success'
45
- continue-on-error: true
46
- uses: peter-evans/create-pull-request@v5
47
- with:
48
- delete-branch: true
49
- body: "Automatically apply code formatter change"
50
- title: "chore(format): run black on ${{github.ref_name}}"
51
- commit-message: "chore(format): run black on ${{github.ref_name}}"
52
- branch: formatter-${{github.ref_name}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.github/workflows/sync_dev.yml DELETED
@@ -1,23 +0,0 @@
1
- name: Merge dev into main
2
-
3
- on:
4
- workflow_dispatch:
5
-
6
- jobs:
7
- sync_dev:
8
- runs-on: ubuntu-latest
9
-
10
- permissions:
11
- contents: write
12
- pull-requests: write
13
-
14
- steps:
15
- - uses: actions/checkout@v3
16
- with:
17
- ref: main
18
-
19
- - name: Create Pull Request
20
- run: |
21
- gh pr create --title "chore(sync): merge dev into main" --body "Merge dev to main" --base main --head dev
22
- env:
23
- GH_TOKEN: ${{ github.token }}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.github/workflows/unitest.yml DELETED
@@ -1,36 +0,0 @@
1
- name: Unit Test
2
- on: [ push, pull_request ]
3
- jobs:
4
- build:
5
- runs-on: ${{ matrix.os }}
6
- strategy:
7
- matrix:
8
- python-version: ["3.8", "3.9", "3.10"]
9
- os: [ubuntu-latest]
10
- fail-fast: true
11
-
12
- steps:
13
- - uses: actions/checkout@master
14
- - name: Set up Python ${{ matrix.python-version }}
15
- uses: actions/setup-python@v4
16
- with:
17
- python-version: ${{ matrix.python-version }}
18
- - name: Install dependencies
19
- run: |
20
- sudo apt update
21
- sudo apt -y install ffmpeg
22
- sudo apt -y install -qq aria2
23
- aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/hubert_base.pt -d ./ -o hubert_base.pt
24
- python -m pip install --upgrade pip
25
- python -m pip install --upgrade setuptools
26
- python -m pip install --upgrade wheel
27
- pip install torch torchvision torchaudio
28
- pip install -r requirements.txt
29
- - name: Test step 1 & 2
30
- run: |
31
- mkdir -p logs/mi-test
32
- touch logs/mi-test/preprocess.log
33
- python infer/modules/train/preprocess.py logs/mute/0_gt_wavs 48000 8 logs/mi-test True 3.7
34
- touch logs/mi-test/extract_f0_feature.log
35
- python infer/modules/train/extract/extract_f0_print.py logs/mi-test $(nproc) pm
36
- python infer/modules/train/extract_feature_print.py cpu 1 0 0 logs/mi-test v1 True