-
-
Notifications
You must be signed in to change notification settings - Fork 47.7k
Update build.yml #12913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update build.yml #12913
Changes from 1 commit
7450df5
1bcbab1
3ae98df
10e58eb
ff8f54c
263ddaa
bc45977
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
name: "build" | ||
|
||
on: | ||
pull_request: | ||
schedule: | ||
- cron: "0 0 * * *" # Run everyday | ||
|
||
jobs: | ||
build: | ||
name: Build and Test | ||
|
@@ -13,7 +11,6 @@ jobs: | |
- uses: actions/checkout@v5 | ||
- name: Checkout Repository | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: astral-sh/setup-uv@v6 | ||
- name: Set up uv | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
- uses: astral-sh/setup-uv@v3 | ||
|
@@ -27,16 +24,12 @@ jobs: | |
with: | ||
python-version: 3.11 | ||
allow-prereleases: true | ||
|
||
- name: Install dependencies | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
- run: | | ||
uv sync --all-extras | ||
uv pip list | ||
|
||
- name: Lint code | ||
run: uv run ruff check , --output-format=github | ||
|
||
|
||
run: uv run ruff check , --output-format=github | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does the comma (,) do on this line? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed it . There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the . useful? If not, let's remove it. |
||
- name: Run tests | ||
# TODO: #8818 Re-enable quantum tests | ||
run: uv run pytest | ||
|
@@ -52,10 +45,8 @@ jobs: | |
--ignore=web_programming/fetch_anime_and_play.py | ||
--cov-report=term-missing:skip-covered | ||
--cov=. . | ||
|
||
- name: Build package (if needed) | ||
run: uv build | ||
|
||
- if: ${{ success() }} | ||
run: scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This step only has a
name
but norun
oruses
so this GHA is invalid https://github.com/TheAlgorithms/Python/actions/runs/17159313101There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not. https://github.com/TheAlgorithms/Python/pull/12913/checks