mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-04-29 12:00:00 +00:00
remove lint from docker publish workflow
This commit is contained in:
parent
d3a449269a
commit
62691413ae
2 changed files with 3 additions and 35 deletions
36
.github/workflows/build-dev.yml
vendored
36
.github/workflows/build-dev.yml
vendored
|
|
@ -51,32 +51,6 @@ jobs:
|
|||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
echo "Extracted version: $VERSION"
|
||||
|
||||
lint-and-check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v3
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
uv sync --all-extras
|
||||
uv pip install ruff mypy
|
||||
|
||||
- name: Run ruff
|
||||
run: uv run ruff check . --output-format=github
|
||||
|
||||
- name: Run mypy
|
||||
run: uv run python -m mypy . || true
|
||||
continue-on-error: true
|
||||
|
||||
test-build-regular:
|
||||
needs: extract-version
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -148,7 +122,7 @@ jobs:
|
|||
mv /tmp/.buildx-cache-dev-single-new /tmp/.buildx-cache-dev-single
|
||||
|
||||
summary:
|
||||
needs: [extract-version, lint-and-check, test-build-regular, test-build-single]
|
||||
needs: [extract-version, test-build-regular, test-build-single]
|
||||
runs-on: ubuntu-latest
|
||||
if: always()
|
||||
steps:
|
||||
|
|
@ -160,13 +134,7 @@ jobs:
|
|||
echo "**Dockerfile:** ${{ github.event.inputs.dockerfile || 'both' }}" >> $GITHUB_STEP_SUMMARY
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
echo "### Results:" >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
if [[ "${{ needs.lint-and-check.result }}" == "success" ]]; then
|
||||
echo "✅ **Lint & Type Check:** Passed" >> $GITHUB_STEP_SUMMARY
|
||||
else
|
||||
echo "❌ **Lint & Type Check:** Failed" >> $GITHUB_STEP_SUMMARY
|
||||
fi
|
||||
|
||||
|
||||
if [[ "${{ needs.test-build-regular.result }}" == "success" ]]; then
|
||||
echo "✅ **Regular Dockerfile:** Build successful" >> $GITHUB_STEP_SUMMARY
|
||||
elif [[ "${{ needs.test-build-regular.result }}" == "skipped" ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue