Skip to content
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

Create python-package.yml #1332

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

invisiblepancake
Copy link

No description provided.

Copy link

Marking as stale. No activity in 60 days.

@github-actions github-actions bot added the stale No activity in 60 days on issue or PR label Feb 19, 2025
Copy link
Author

@invisiblepancake invisiblepancake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Workflow Metadata:
    Name: The workflow is named "Python package".
    Trigger Events: The workflow is configured to run on two events:
        push: The workflow will trigger on any push to the main branch.
        pull_request: The workflow will trigger on any pull request targeting the main branch.

Jobs:
    Build Job:
        Runs-On: The job will execute on the ubuntu-latest runner.
        Strategy:
            fail-fast: false: This option ensures that if one job in the matrix fails, it will not stop all other jobs.
            Matrix: The job will run for three different Python versions: 3.9, 3.10, and 3.11.

Steps:
    Checkout Code:
        Uses the actions/checkout@v4 action to check out the repository code.
    Set Up Python:
        Uses the actions/setup-python@v3 action to set up the specified Python version from the matrix.
    Install Dependencies:
        Upgrades pip to the latest version.
        Installs flake8 and pytest packages.
        If a requirements.txt file is present, it installs the required dependencies listed in it.
    Lint with flake8:
        Runs flake8 to check for Python syntax errors or undefined names and displays the source of errors and statistics.
        Runs flake8 again with exit-zero to treat all errors as warnings, checks for code complexity, and limits the maximum line length to 127 characters.
    Test with pytest:
        Runs pytest to execute the test suite.

Copy link
Author

@invisiblepancake invisiblepancake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Workflow Metadata:
    Name: The workflow is named "Python package".
    Trigger Events: The workflow is configured to run on two events:
        push: The workflow will trigger on any push to the main branch.
        pull_request: The workflow will trigger on any pull request targeting the main branch.

Jobs:
    Build Job:
        Runs-On: The job will execute on the ubuntu-latest runner.
        Strategy:
            fail-fast: false: This option ensures that if one job in the matrix fails, it will not stop all other jobs.
            Matrix: The job will run for three different Python versions: 3.9, 3.10, and 3.11.

Steps:
    Checkout Code:
        Uses the actions/checkout@v4 action to check out the repository code.
    Set Up Python:
        Uses the actions/setup-python@v3 action to set up the specified Python version from the matrix.
    Install Dependencies:
        Upgrades pip to the latest version.
        Installs flake8 and pytest packages.
        If a requirements.txt file is present, it installs the required dependencies listed in it.
    Lint with flake8:
        Runs flake8 to check for Python syntax errors or undefined names and displays the source of errors and statistics.
        Runs flake8 again with exit-zero to treat all errors as warnings, checks for code complexity, and limits the maximum line length to 127 characters.
    Test with pytest:
        Runs pytest to execute the test suite.

@github-actions github-actions bot removed the stale No activity in 60 days on issue or PR label Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant