Range(n) equivalent in GitHub Actions

Hi folks!
Basically, I want to replace the value of test_group with range(1, strategy.max-parallel + 1). Is there a way to do that programmatically?
Thanks!

    strategy:
      max-parallel: 4
      matrix:
        python-version: [3.8]
        operating-system: [ubuntu-latest]
        # Next line should be range(1, max-parallel + 1)
        test_group: [1, 2, 3, 4]