diff --git a/python-project-template/.github/workflows/{% if include_benchmarks %}asv-main.yml{% endif %}.jinja b/python-project-template/.github/workflows/{% if include_benchmarks %}asv-main.yml{% endif %}.jinja index 1808bac..af50786 100644 --- a/python-project-template/.github/workflows/{% if include_benchmarks %}asv-main.yml{% endif %}.jinja +++ b/python-project-template/.github/workflows/{% if include_benchmarks %}asv-main.yml{% endif %}.jinja @@ -12,20 +12,14 @@ env: PYTHON_VERSION: "3.10" WORKING_DIR: {% raw %}${{ github.workspace }}{% endraw %}/benchmarks -jobs: - - consecutiveness: - runs-on: ubuntu-latest +concurrency: + group: {% raw %}${{ github.workflow }}-${{ github.ref }}{% endraw %} + cancel-in-progress: true - steps: - - name: Set workflows on main to run consecutively - uses: mktcode/consecutive-workflow-action@eb43c6b5852dd0e33efa797a1817196d06daa4b2 - with: - token: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %} +jobs: setup-python: runs-on: ubuntu-latest - needs: consecutiveness steps: - name: Cache Python {% raw %}${{ env.PYTHON_VERSION }}{% endraw %}