Skip to content

Add testing#10

Draft
JunAishima wants to merge 22 commits intomainfrom
add-testing
Draft

Add testing#10
JunAishima wants to merge 22 commits intomainfrom
add-testing

Conversation

@JunAishima
Copy link
Contributor

Incorporates changes in #8

Refactor tasks and flows

Add a small testing function that will use a Tiled API key stored in the repo secrets to run the end_of_run_workflow() as a PyTest.

This has required some updates to make it work practically:

  • use from_uri() instead of from_profile() so that the testing does not depend on local files (Tiled site profiles - also need to add an environment variable to store the location)
  • return a True at the end of end_of_run_workflow() to signal that all of the steps completed successfully

 * return data from read function
 * enable testing to run workflows for CI, which will use production
   Tiled but github actions, which will make using Prefect Cloud
   impractical
 * do not need profiles to be mounted (not possible for CI anyways)
 * no exceptions that prevented completion
 * used for CI test that returns end_of_run_workflow()
 * this PR now incorporates the branch `refactor-tasks` and includes a
   minor print formatting change and removing the extra layer of flow
@JunAishima JunAishima requested a review from AbbyGi February 25, 2026 20:31
 * fail gracefully if not available to enable easier workarounds
   for testing
 * for CI, calling a function with the Tiled API key and stop
   document string would be convenient
 * distinguish from any actual Tiled API key - this will go through
   end_of_run_workflow() kwargs when the module is called
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