Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub workflows for CI/CD #414

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

ohdearquant
Copy link
Collaborator

@ohdearquant ohdearquant commented Aug 12, 2024

Update GitHub workflows to ensure CI/CD processes are professionally done following best industry practices.

  • pyproject.toml:

    • Add coverage, pytest, flake8, and codecov to dependencies.
  • .github/workflows/python-package.yml:

    • Add steps to install coverage tool.
    • Add steps to run coverage tool with pytest.
    • Add steps to upload coverage report.
    • Add steps to send notifications for build failures.
  • .github/workflows/python_publish_testpypi.yml:

    • Add steps to install coverage tool.
    • Add steps to run coverage tool with pytest.
    • Add steps to upload coverage report.
    • Add steps to lint code with flake8.
    • Add steps to send notifications for build failures.
  • .github/workflows/release_to_pip.yml:

    • Add steps to install coverage tool.
    • Add steps to run coverage tool with pytest.
    • Add steps to upload coverage report.
    • Add steps to lint code with flake8.
    • Add steps to send notifications for build failures.
  • .github/workflows/codeql.yml:

    • Add steps to install coverage tool.
    • Add steps to run coverage tool with pytest.
    • Add steps to upload coverage report.
    • Add steps to lint code with flake8.
    • Add steps to send notifications for build failures.
  • .github/workflows/dependency-review.yml (new file):

    • Add workflow to review dependencies for vulnerabilities.
    • Use actions/dependency-review-action@v2.
    • Run on pull requests and pushes to main branch.
    • Send notifications for any vulnerabilities found.
  • .github/workflows/secret-scan.yml (new file):

    • Add workflow to scan for secrets in the codebase.
    • Use actions/secret-scan-action@v1.
    • Run on pull requests and pushes to main branch.
    • Send notifications for any secrets found.

For more details, open the Copilot Workspace session.

ohdearquant and others added 2 commits August 12, 2024 10:12
Update GitHub workflows to ensure CI/CD processes are professionally done following best industry practices.

* **pyproject.toml**:
  - Add `coverage`, `pytest`, `flake8`, and `codecov` to dependencies.

* **.github/workflows/python-package.yml**:
  - Add steps to install `coverage` tool.
  - Add steps to run `coverage` tool with `pytest`.
  - Add steps to upload coverage report.
  - Add steps to send notifications for build failures.

* **.github/workflows/python_publish_testpypi.yml**:
  - Add steps to install `coverage` tool.
  - Add steps to run `coverage` tool with `pytest`.
  - Add steps to upload coverage report.
  - Add steps to lint code with `flake8`.
  - Add steps to send notifications for build failures.

* **.github/workflows/release_to_pip.yml**:
  - Add steps to install `coverage` tool.
  - Add steps to run `coverage` tool with `pytest`.
  - Add steps to upload coverage report.
  - Add steps to lint code with `flake8`.
  - Add steps to send notifications for build failures.

* **.github/workflows/codeql.yml**:
  - Add steps to install `coverage` tool.
  - Add steps to run `coverage` tool with `pytest`.
  - Add steps to upload coverage report.
  - Add steps to lint code with `flake8`.
  - Add steps to send notifications for build failures.

* **.github/workflows/dependency-review.yml** (new file):
  - Add workflow to review dependencies for vulnerabilities.
  - Use `actions/dependency-review-action@v2`.
  - Run on pull requests and pushes to `main` branch.
  - Send notifications for any vulnerabilities found.

* **.github/workflows/secret-scan.yml** (new file):
  - Add workflow to scan for secrets in the codebase.
  - Use `actions/secret-scan-action@v1`.
  - Run on pull requests and pushes to `main` branch.
  - Send notifications for any secrets found.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/lion-agi/lionagi?shareId=XXXX-XXXX-XXXX-XXXX).
@ohdearquant ohdearquant merged commit 28f6bca into 0.3.0-dev Aug 19, 2024
2 checks passed
@ohdearquant ohdearquant deleted the ohdearquant/update-github-workflows branch August 19, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant