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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/actions-build-and-test-python-building-testing-github-docs-workflow-guide.md | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - 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
