{"id":26742325,"url":"https://github.com/micnguyen266/ci-cd-python-demo","last_synced_at":"2026-05-07T13:32:21.024Z","repository":{"id":284857818,"uuid":"956290656","full_name":"micnguyen266/ci-cd-python-demo","owner":"micnguyen266","description":"Building a Simple CI/CD Pipeline with GitHub Actions (Python)","archived":false,"fork":false,"pushed_at":"2025-03-28T02:40:58.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T03:25:27.303Z","etag":null,"topics":["actions","cicd","github","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/micnguyen266.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-28T02:24:27.000Z","updated_at":"2025-03-28T02:42:03.000Z","dependencies_parsed_at":"2025-03-28T03:35:35.349Z","dependency_job_id":null,"html_url":"https://github.com/micnguyen266/ci-cd-python-demo","commit_stats":null,"previous_names":["micnguyen266/ci-cd-python-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micnguyen266%2Fci-cd-python-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micnguyen266%2Fci-cd-python-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micnguyen266%2Fci-cd-python-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micnguyen266%2Fci-cd-python-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micnguyen266","download_url":"https://codeload.github.com/micnguyen266/ci-cd-python-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245978283,"owners_count":20703678,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","cicd","github","python"],"created_at":"2025-03-28T06:17:31.724Z","updated_at":"2026-05-07T13:32:20.984Z","avatar_url":"https://github.com/micnguyen266.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ci-cd-python-demo\n\n## Verify the Pipeline Execution\n1. Go to your GitHub repository.\n2. Click on the \"Actions\" tab.\n3. You should see your CI/CD pipeline running.\n4. It will:\n   5. Checkout your code. \n   6. Set up Python and install dependencies. \n   7. Run your unit tests. \n   8. Simulate deployment.\n\n## If you want to deploy to a server (e.g., DigitalOcean, AWS EC2), add a deployment step using SSH or Docker.\n\n### Example (SSH Deployment):\n```\n- name: Deploy to server\n  uses: appleboy/ssh-action@v0.1.7\n  with:\n    host: ${{ secrets.SERVER_HOST }}\n    username: ${{ secrets.SERVER_USER }}\n    key: ${{ secrets.SERVER_KEY }}\n    script: |\n      cd /path/to/app\n      git pull origin main\n      pip install -r requirements.txt\n      systemctl restart app.service\n```\n\n## Key Takeaways\n1. Pipeline Trigger: On push and pull_request events to the main branch.\n2. CI/CD Workflow:\n   3. Checkout code. \n   4. Set up Python. \n   5. Install dependencies. \n   6. Run unit tests. \n   7. Simulate deployment. \n8. GitHub Secrets: Use secrets for sensitive information when deploying to external servers.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicnguyen266%2Fci-cd-python-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicnguyen266%2Fci-cd-python-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicnguyen266%2Fci-cd-python-demo/lists"}