Skip to content

Add testing#10

Open
JunAishima wants to merge 32 commits intomainfrom
add-testing
Open

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

Conversation

@JunAishima
Copy link
Contributor

@JunAishima JunAishima commented Feb 25, 2026

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

As of March 12, also updated to use new directory and filename for Tiled credentials, provide dry_run option (though minimally useful)

 * 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
 * match what is used in workflow
 * already included in lock file, so no update necessary
 * read TILED_API_KEY in from env.secrets
 * a couple of other fix-ups
 * remove from data_validation which is no longer used
 * update deployment file for current locations
 * set repo name to main so that these functions will run
   in production
   * CI, image build, and pre-commit ran fine so I am happy to
     change this now
@JunAishima JunAishima added the HOLD FOR MAINT Do not merge until maintenance. label Mar 12, 2026
@JunAishima JunAishima marked this pull request as ready for review March 12, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

HOLD FOR MAINT Do not merge until maintenance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant