How to improve CI.yml to avoid running a test-set twice

Im my CI.yml file I have:

      matrix:
        version:
          - '1.10'
          - '1'
          - 'pre'

This is intended. I want to test with the latest stable Julia release, the latest Julia release and any upcoming beta version (pre-release).

But if there is no pre-release (like in the moment), then this runs the tests twice with the same Julia version (1.11).

How can this be avoided?

You can have an if: condition entry in the job spec which says (in pseudo code) “if version == "pre" and the actual Julia version is 1.11.* then skip”. I’m on my phone and don’t know the correct syntax off-hand.

2 Likes