-
Notifications
You must be signed in to change notification settings - Fork 0
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
chore: align with CI workflows of other interface packages #1
base: master
Are you sure you want to change the base?
Changes from all commits
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: PR | ||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- reopened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
title-format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
name: release-please | ||
|
||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
release_created: ${{ steps.release.outputs.release_created }} | ||
steps: | ||
- uses: GoogleCloudPlatform/release-please-action@v3 | ||
id: release | ||
with: | ||
release-type: simple | ||
|
||
Comment on lines
+8
to
+18
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. 💡 Codebase verification 🛠️ Refactor suggestion Update the The GitHub Actions workflow in
🔗 Analysis chainUpdate the Release Type Parameter The - release-type: simple
+ release-type: python 🏁 Scripts executedThe following scripts were executed for the analysis: Error: No shell scripts found Script: #!/bin/bash
# Display the contents of the GitHub Actions workflow file to verify the release-type parameter.
cat .github/workflows/release-please.yml
Length of output: 1525 |
||
setup_and_build: | ||
runs-on: ubuntu-latest | ||
needs: release-please | ||
if: ${{ needs.release-please.outputs.release_created }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up python | ||
id: setup-python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
version: 2.0.0 | ||
|
||
- name: Install dependencies | ||
run: poetry install --with dev | ||
|
||
- name: Build source and wheel distribution | ||
run: | | ||
poetry build | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: dist/ | ||
pypi_publish: | ||
name: Upload release to PyPI | ||
needs: [release-please, setup_and_build] | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: release | ||
permissions: | ||
id-token: write | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: dist | ||
path: dist/ | ||
|
||
- name: Publish distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file was deleted.
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,75 @@ | ||||||
name: CI | ||||||
|
||||||
on: | ||||||
push: | ||||||
branches: | ||||||
- main | ||||||
pull_request: | ||||||
branches-ignore: [] | ||||||
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. Remove empty branches-ignore section. The empty pull_request:
- branches-ignore: [] 📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.4)8-8: "branches-ignore" section should not be empty (syntax-check) |
||||||
|
||||||
jobs: | ||||||
formatting: | ||||||
runs-on: ubuntu-latest | ||||||
steps: | ||||||
- uses: actions/checkout@v4 | ||||||
- name: Set up python | ||||||
id: setup-python | ||||||
uses: actions/setup-python@v5 | ||||||
with: | ||||||
python-version: "3.12" | ||||||
|
||||||
- name: Install Poetry | ||||||
uses: snok/install-poetry@v1 | ||||||
with: | ||||||
version: 2.0.0 | ||||||
|
||||||
- name: Install dependencies | ||||||
run: poetry install --with dev | ||||||
|
||||||
- name: Check formatting | ||||||
run: poetry run ruff format --check | ||||||
|
||||||
linting: | ||||||
runs-on: ubuntu-latest | ||||||
steps: | ||||||
- uses: actions/checkout@v4 | ||||||
- name: Set up python | ||||||
id: setup-python | ||||||
uses: actions/setup-python@v5 | ||||||
with: | ||||||
python-version: "3.12" | ||||||
|
||||||
- name: Install Poetry | ||||||
uses: snok/install-poetry@v1 | ||||||
with: | ||||||
version: 2.0.0 | ||||||
|
||||||
- name: Install dependencies | ||||||
run: poetry install --with dev | ||||||
|
||||||
- name: Check code | ||||||
run: poetry run ruff check | ||||||
|
||||||
testing: | ||||||
runs-on: ubuntu-latest | ||||||
steps: | ||||||
- uses: actions/checkout@v4 | ||||||
- name: Set up python | ||||||
id: setup-python | ||||||
uses: actions/setup-python@v5 | ||||||
with: | ||||||
python-version: "3.12" | ||||||
|
||||||
- name: Install Poetry | ||||||
uses: snok/install-poetry@v1 | ||||||
with: | ||||||
version: 2.0.0 | ||||||
|
||||||
- name: Install dependencies | ||||||
run: poetry install --with dev | ||||||
|
||||||
- name: Run pytest | ||||||
run: poetry run coverage run -m pytest tests/tests.py | ||||||
|
||||||
- name: Run Coverage | ||||||
run: poetry run coverage report -m |
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.
🛠️ Refactor suggestion
Update release-type for Python package.
The
release-type
should be set to "python" instead of "simple" for Python packages to ensure proper version management and changelog generation.📝 Committable suggestion