Prompt Buddy logoPrompt Buddy

github · GitHub Actions Docs

Actions Building and testing Python - GitHub Docs

A tutorial on setting up a GitHub Actions workflow to automate the building and testing of Python code, including configuring dependencies and running test suites.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Actions Building and testing Python - GitHub Docs

A tutorial on setting up a GitHub Actions workflow to automate the building and testing of Python code, including configuring dependencies and running test suites.

When To Use

Use when you need to configure a GitHub Actions workflow to automatically install Python dependencies and execute tests on every push or pull request.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/actions-build-and-test-python-building-testing-github-docs-workflow-guide.mdA tutorial guide for creating a continuous integration workflow to build and test Python projects using GitHub Actions.Questions about a tutorial guide for creating a continuous integration workflow to build and test Python projects using GitHub Actions.
examples/actions-build-and-test-python-building-testing-github-docs-github-action.textA GitHub Actions workflow YAML configuration demonstrating how to build and test a Python package using a matrix strategy across multiple Python versions.Exact payloads, commands, or snippets shown in A GitHub Actions workflow YAML configuration demonstrating how to build and test a Python package using a matrix stra...
examples/actions-build-and-test-python-building-testing-github-docs-github-action-2.textA GitHub Actions workflow YAML configuration for building and testing a Python package using ubuntu-latest and setup-python.Exact payloads, commands, or snippets shown in A GitHub Actions workflow YAML configuration for building and testing a Python package using ubuntu-latest and setup-...
examples/actions-build-and-test-python-building-testing-github-docs-github-action-3.textA GitHub Actions workflow YAML configuration for building and testing a Python package across multiple operating systems and Python versions.Exact payloads, commands, or snippets shown in A GitHub Actions workflow YAML configuration for building and testing a Python package across multiple operating syst...
examples/actions-build-and-test-python-building-testing-github-docs-github-action-4.textA YAML-formatted workflow example demonstrating how to set up Python, install dependencies, and run tests within a GitHub Actions runner.Exact payloads, commands, or snippets shown in A YAML-formatted workflow example demonstrating how to set up Python, install dependencies, and run tests within a Gi...
examples/actions-build-and-test-python-building-testing-github-docs-github-action-5.textA GitHub Actions workflow configuration demonstrating how to set up Python, install dependencies from requirements.txt, and run build and test steps.Exact payloads, commands, or snippets shown in A GitHub Actions workflow configuration demonstrating how to set up Python, install dependencies from requirements.tx...
examples/actions-build-and-test-python-building-testing-github-docs-github-action-6.textA GitHub Actions workflow configuration demonstrating how to set up Python, install dependencies via pip, and run tests.Exact payloads, commands, or snippets shown in A GitHub Actions workflow configuration demonstrating how to set up Python, install dependencies via pip, and run tests.
examples/actions-build-and-test-python-building-testing-github-docs-github-action-7.textA GitHub Actions workflow configuration demonstrating how to set up Python, install dependencies from requirements.txt, and run tests using pytest.Exact payloads, commands, or snippets shown in A GitHub Actions workflow configuration demonstrating how to set up Python, install dependencies from requirements.tx...
examples/actions-build-and-test-python-building-testing-github-docs-github-action-8.textA GitHub Actions workflow configuration demonstrating how to set up Python, install Ruff, and run linting and formatting checks.Exact payloads, commands, or snippets shown in A GitHub Actions workflow configuration demonstrating how to set up Python, install Ruff, and run linting and formatt...
examples/actions-build-and-test-python-building-testing-github-docs-github-action-9.textA GitHub Actions workflow YAML configuration that uses a matrix strategy to build and test a Python package across multiple Python versions using tox.Exact payloads, commands, or snippets shown in A GitHub Actions workflow YAML configuration that uses a matrix strategy to build and test a Python package across mu...
examples/actions-build-and-test-python-building-testing-github-docs-github-action-10.textA GitHub Actions workflow YAML configuration that sets up a matrix strategy to build and test a Python package across multiple Python versions.Exact payloads, commands, or snippets shown in A GitHub Actions workflow YAML configuration that sets up a matrix strategy to build and test a Python package across...
examples/actions-build-and-test-python-building-testing-github-docs-github-action-11.textA GitHub Actions workflow configuration file demonstrating how to build and test Python code.Exact payloads, commands, or snippets shown in A GitHub Actions workflow configuration file demonstrating how to build and test Python code.

What This Skill Covers

    • GitHub Actions / - Tutorials / - Build and test code / - Python
  • Main sections: In this article, Introduction, Prerequisites, Using a Python workflow template, Specifying a Python version.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://docs.github.com/en/actions/tutorials/build-and-test-code/python