Skip to content

Use coverage-master for tag events to skip CloudFormation actions tests#214

Merged
Jordi Soucheiron (jsoucheiron) merged 3 commits intomasterfrom
copilot/run-tests-on-tag-event
Feb 17, 2026
Merged

Use coverage-master for tag events to skip CloudFormation actions tests#214
Jordi Soucheiron (jsoucheiron) merged 3 commits intomasterfrom
copilot/run-tests-on-tag-event

Conversation

Copy link
Contributor

Copilot AI commented Feb 17, 2026

Description

Tag pushes trigger the lint-and-test workflow, which runs make coverage by default. This includes tests that validate CloudFormation actions against AWS endpoints, causing failures when the local actions list is stale during release workflows.

Changes

Modified .github/workflows/lint-and-test.yml to use make coverage-master for tag events:

  • make coverage: Runs for feature branches and PRs (includes all tests)
  • make coverage-master: Runs for master branch and tags (skips @pytest.mark.actions tests via -m "not actions")

Updated conditionals:

- run: make coverage
  if: github.ref != 'refs/heads/master' && !startsWith(github.ref, 'refs/tags/')

- run: make coverage-master
  if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')

Checklist

  • I have updated the pyproject.toml

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: jsoucheiron <1830262+jsoucheiron@users.noreply.github.com>
Copilot AI changed the title [WIP] Run tests on library release tag event Use coverage-master for tag events to skip CloudFormation actions tests Feb 17, 2026
@jsoucheiron Jordi Soucheiron (jsoucheiron) marked this pull request as ready for review February 17, 2026 10:17
Copilot AI review requested due to automatic review settings February 17, 2026 10:17
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modifies the CI workflow to skip CloudFormation actions tests during tag-triggered builds. Tag pushes now use make coverage-master (which excludes tests marked with @pytest.mark.actions) instead of make coverage, preventing failures when the local CloudFormation actions list is stale during release workflows.

Changes:

  • Updated conditional logic to run make coverage-master for both master branch and tag events
  • Ensures feature branches and PRs still run full test coverage including actions tests

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jsoucheiron Jordi Soucheiron (jsoucheiron) merged commit 48fafd5 into master Feb 17, 2026
13 checks passed
@jsoucheiron Jordi Soucheiron (jsoucheiron) deleted the copilot/run-tests-on-tag-event branch February 17, 2026 10:28
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.

5 participants