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

Test example scripts #72

Open
graeme-a-stewart opened this issue Jul 30, 2024 · 0 comments
Open

Test example scripts #72

graeme-a-stewart opened this issue Jul 30, 2024 · 0 comments
Labels
examples Related to example codes tests Related to testing the code

Comments

@graeme-a-stewart
Copy link
Member

As the examples are distributed with the package, they should be tested.

This means setting up the appropriate project file for them and checking that a representative sample run correctly.

I tried to achieve this as part of #71, but there are a number of problems:

However, although mechanically this is almost doing the correct thing, in the CI there are some issues:

  • The dependencies are heavy and some for GLMakie actually seem to timeout
  • As these are CI machines, they can't correctly setup GLMakie

And in addition for the nightly build there seems to be a weird issue with setting up the environment that does not happen in 1.9 and 1.10:

ERROR: LoadError: ArgumentError: Package Pkg does not have Random in its dependencies:
- Note that the following manifests in the load path were resolved with a potentially
  different DEV version of the current version, which may be the cause of the error.
  Try to re-resolve them in the current version, or consider deleting them if that fails:
    /tmp/jl_qr3gn6/Manifest.toml
- You may have a partially installed environment. Try `Pkg.instantiate()`
  to ensure all packages in the environment are installed.
- Or, if you have Pkg checked out for development and have
  added Random as a dependency but haven't updated your primary
  environment's manifest file, try `Pkg.resolve()`.
- Otherwise you may need to report an issue with Pkg

I currently have no insight into that one.

What needs to be done here is:

  • Restructure the examples so that the CLI ones can be run in a lighter weight environment, not depending on GLMakie
  • Figure out the problem for the current nightly project setup
@graeme-a-stewart graeme-a-stewart added examples Related to example codes tests Related to testing the code labels Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples Related to example codes tests Related to testing the code
Projects
None yet
Development

No branches or pull requests

1 participant