Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agnostiqhq/covalent-cloud-github-workflow
Template for integrating Covalent Cloud's high-performance computing capabilities into GitHub Workflows
https://github.com/agnostiqhq/covalent-cloud-github-workflow
automation ci-cd cicd covalent github-actions github-workflow gpu high-performance-computing hpc mlops python serverless
Last synced: about 1 month ago
JSON representation
Template for integrating Covalent Cloud's high-performance computing capabilities into GitHub Workflows
- Host: GitHub
- URL: https://github.com/agnostiqhq/covalent-cloud-github-workflow
- Owner: AgnostiqHQ
- Created: 2024-03-05T22:25:39.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-08T16:40:35.000Z (10 months ago)
- Last Synced: 2024-04-23T14:28:12.270Z (8 months ago)
- Topics: automation, ci-cd, cicd, covalent, github-actions, github-workflow, gpu, high-performance-computing, hpc, mlops, python, serverless
- Homepage: https://app.covalent.xyz/
- Size: 1.47 MB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Covalent Cloud GitHub Workflow Template 🚀
This repository provides a template for integrating high-performance functions on Covalent Cloud seamlessly into your GitHub Workflows. The workflow demonstrates how to dispatch compute-intensive tasks, track their status, and store results for further analysis.
If you wish to read more, please take a look at the [companion blog post](https://docs.covalent.xyz/docs/cloud/tutorials-cloud/github-workflows/), which will provide a detailed walkthrough, example use cases, and further explanations ✨. To learn more about Covalent Cloud, visit [covalent.xyz](https://www.covalent.xyz) and the documentation at [docs.covalent.xyz](https://docs.covalent.xyz/). To use this, you need a Covalent Cloud account, please sign up [here](https://app.covalent.xyz/register).
> Note: This is just a template to get you started. You can customize it to fit your specific needs.
## Overview 📝
1. **Job Submission:** The workflow dispatches a series of high-performance functions to Covalent Cloud. For demonstration, these functions simulate intensive computation with a sleep operation and randomly return "done" or "failed" as the outcome.
2. **Status Tracking:** The run status for each dispatched job is maintained in the `runid_status.csv` file.
3. **Result Storage:** Upon completion, results are collected and stored in the `results.csv` file.## Getting Started 👐
1. Clone the Repository: Get your own copy of this repository.
2. Install Dependencies: Install required packages (`pip install -r .github/workflows/requirements.txt`)
3. Covalent Cloud API Key: Set your Covalent Cloud API key as a GitHub secret named `CC_API_KEY`.## Potential Enhancements ✈️
- Customization 🛠️ : Adapt to your workflow - modify `covalent_workflow.py` to replace the placeholder functions with your own computationally intensive code.
- Flexible Triggers: Explore different trigger mechanisms (pull requests, code changes, external webhooks) to automate your workflow.
- Workflow Separation: Consider separate workflows for job submission and result monitoring, potentially with different schedules, for better modularity.
- Database Integration: Replace the simple CSV-based status tracking with a database solution (e.g., SQLite, PostgreSQL) for scalability and advanced querying.
- Result Retrieval: Use Covalent primitives (cc.get_result) in other scripts or workflows to retrieve results and status updates for tasks dispatched within this workflow.## Key Takeaway 🗝️
This template provides a solid foundation for streamlining the integration of high-performance computing tasks into your GitHub development processes. The focus is on flexibility – adapt it to fit your specific computational needs! 💪
## Learn More 📚
- Covalent Cloud Documentation: [docs.covalent.xyz](https://docs.covalent.xyz/)
- Sign Up for Covalent Cloud: [covalent.xyz/register](https://app.covalent.xyz/register)
- Covalent Cloud Website: [covalent.xyz](https://www.covalent.xyz)