Skip to content

Commit 263ddaa

Browse files
Update build.yml
1 parent ff8f54c commit 263ddaa

1 file changed

Lines changed: 16 additions & 15 deletions

File tree

.github/workflows/build.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: "Build CI/CD PipeLine"
1+
name: "Build CI/CD Pipeline"
22

33
on:
44
push:
55
branches: [main, develop]
66
paths-ignore:
7-
- "*.md"
8-
- "docs/**"
7+
- "*.md"
8+
- "docs/**"
99

1010
pull_request:
1111
branches: [main]
@@ -14,7 +14,7 @@ on:
1414
- "*.md"
1515
- "docs/**"
1616
schedule:
17-
- cron: "0 0 * * *"
17+
- cron: "0 0 * * *"
1818

1919
workflow_dispatch:
2020

@@ -24,22 +24,22 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Checkout Repository
27-
- uses: actions/checkout@v5
27+
uses: actions/checkout@v5
2828

2929
- name: Set up uv
30-
- uses: astral-sh/setup-uv@v3
30+
uses: astral-sh/setup-uv@v3
3131
with:
3232
enable-cache: true
3333
cache-dependency-glob: |
34-
**/uv.lock
35-
**/pyproject.toml
34+
**/uv.lock
35+
**/pyproject.toml
3636
- name: Set up Python
37-
- uses: actions/setup-python@v5
37+
uses: actions/setup-python@v5
3838
with:
39-
python-version: 3.11
39+
python-version: "3.11"
4040
allow-prereleases: true
4141
- name: Install dependencies
42-
- run: |
42+
run: |
4343
uv sync --all-extras
4444
uv pip list
4545
- name: Lint code
@@ -60,11 +60,12 @@ jobs:
6060
--ignore=web_programming/fetch_anime_and_play.py \
6161
--cov-report=term-missing:skip-covered \
6262
--cov=. .
63-
63+
6464
- name: Build package (if needed)
65-
run: uv build
66-
if: ${{ success() }}
65+
run: uv build
66+
if: ${{ success() }}
6767

68-
- name: Generate Directory Markdoun
68+
- name: Generate Directory Markdown
6969
run: python scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
70+
if: ${{ success() }}
7071

0 commit comments

Comments
 (0)