Skip to content

Conversation

@zhenyulin
Copy link
Member

Motivation

  • Align GitHub Actions with the updated Azure DevOps (.ado) pipeline naming, file paths, and packaging behavior to ensure parity between CI systems.
  • Use newer action versions and improve caching/install steps to match the .ado templates and current best practices.

Description

  • Updated environment variables and secrets to use Azure-style names, e.g. RESOURCE_GROUP -> AZURE_RESOURCE_GROUP, added CONFIG_PROJECT_NAME, and set BICEP_FILE to .infra/functions.bicep in ci-cd-pipeline.yaml.
  • Upgraded action versions and cache behavior: actions/checkout@v4, actions/setup-python@v5, actions/cache@v4, actions/download-artifact@v4, consolidated pip cache to ${{ github.workspace }}/.pip-cache, and improved cache keys.
  • Split install steps to set PIP_CACHE_DIR, install uv, then run uv sync, and added dependency install step for clarity.
  • Adjusted packaging and artifact handling to create functionapp.zip at ${GITHUB_WORKSPACE}, publish it as function-zip, include zip creation, and update deploy logic to resolve BICEP_FILE path and use CONFIG_PROJECT_NAME and the new env names when calling az deployment and azure/webapps-deploy.
  • Added Azure-related envs to the pytest step so tests can access required service credentials when run in CI.

Testing

  • No automated CI tests were executed as part of this change.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants