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

Use YAML template for repeating sections in CI #1

Open
nikosavola opened this issue Aug 2, 2021 · 1 comment
Open

Use YAML template for repeating sections in CI #1

nikosavola opened this issue Aug 2, 2021 · 1 comment

Comments

@nikosavola
Copy link
Owner

The steps such as

      - uses: actions/checkout@v2
      - uses: actions/setup-python@v2
        with:
          python-version: '3.9'
      - uses: actions/cache@v2
        with:
          path: ~/.cache/pip
          key: ${{ runner.os }}-${{ env.pythonLocation }}-pip-${{ hashFiles('**/setup.py') }}
          restore-keys: |
            ${{ runner.os }}-${{ env.pythonLocation }}-pip-

should be turned into a YAML template. Alternatively, only the caching could be shortened.

@nikosavola
Copy link
Owner Author

Seems that YAML anchors are not currently supported, see https://github.community/t/support-for-yaml-anchors/16128/51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant