glotaran / pyglotaran-examples

This repository hold examples showcasing the use of the pyglotaran package
MIT License
5 stars 7 forks source link

🚇 Add parameter for action to opt out pyglotaran-extras installation #49

Closed s-weigand closed 3 years ago

s-weigand commented 3 years ago

Right now the action unconditionally installs the latest version of pyglotaran-extras on the main branch (pip+git installation) https://github.com/glotaran/pyglotaran-examples/blob/3f15c5e50f0ecd2cd06dee1e5bfa08d516a4ccb3/requirements.txt#L6 While this is ob for running the action on pyglotaran and pyglotaran-examples, we need better control over which pyglotaran-extras version gets installed to run it on PRs for pyglotaran-extras.

Thus this PR adds an option to the action which skips installing pyglotaran-extras.

Usage:

      - id: example-run
        uses: glotaran/pyglotaran-examples@main
        with:
          install_extras: false

Note: Since the inputs get converted to strings, the installation is only skipped if the string 'false' is an exact match. But using the boolean value should also work and is nicer for syntax highlighting reasons 😉

A demo run with skipped extras installation can be found on my fork.