Github Actions Ci
Overview
GitHub Actions is an API-driven automation framework to build, test, and deploy code directly from GitHub.
When to Use This Skill
Use to automate tests on pull requests, publish packages, or trigger CD pipelines.
Quick Start (with runnable code examples)
# Example GitHub Action Workflow (.github/workflows/test.yml)
name: Python Test Suite
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run test cases
run: pytest
Advanced Usage
Configuring secret management, matrix builds, job environments, and cache caching keys.
Key References
Dependencies
- None (Configuration syntax)