From d7a0a6391c1f2e3a9fe87c5f940d1dc366116677 Mon Sep 17 00:00:00 2001 From: Johannes Koester Date: Wed, 15 Nov 2023 21:06:01 +0100 Subject: [PATCH] fix ci templates --- poetry_snakemake_plugin/templates/ci.yml.j2 | 24 ++++++++++++++----- .../templates/release_please.yml.j2 | 13 ++++------ 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/poetry_snakemake_plugin/templates/ci.yml.j2 b/poetry_snakemake_plugin/templates/ci.yml.j2 index 4df8c71..f307fb8 100644 --- a/poetry_snakemake_plugin/templates/ci.yml.j2 +++ b/poetry_snakemake_plugin/templates/ci.yml.j2 @@ -13,15 +13,19 @@ jobs: - name: Check out the code uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: "3.11" + - name: Install poetry - run: pipx install poetry + run: pip install poetry - name: Determine dependencies run: poetry lock - uses: actions/setup-python@v4 with: - python-version: "3.9" + python-version: "3.11" cache: poetry - name: Install Dependencies using Poetry @@ -36,15 +40,19 @@ jobs: - name: Check out the code uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: "3.11" + - name: Install poetry - run: pipx install poetry + run: pip install poetry - name: Determine dependencies run: poetry lock - uses: actions/setup-python@v4 with: - python-version: "3.9" + python-version: "3.11" cache: poetry - name: Install Dependencies using Poetry @@ -58,15 +66,19 @@ jobs: steps: - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: "3.11" + - name: Install poetry - run: pipx install poetry + run: pip install poetry - name: Determine dependencies run: poetry lock - uses: actions/setup-python@v4 with: - python-version: "3.9" + python-version: "3.11" cache: poetry - name: Install dependencies diff --git a/poetry_snakemake_plugin/templates/release_please.yml.j2 b/poetry_snakemake_plugin/templates/release_please.yml.j2 index 751bc45..830c5ca 100644 --- a/poetry_snakemake_plugin/templates/release_please.yml.j2 +++ b/poetry_snakemake_plugin/templates/release_please.yml.j2 @@ -24,26 +24,21 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 with: - python-version: "3.9" + python-version: "3.11" - name: Install poetry - run: pipx install poetry + run: pip install poetry - name: Determine dependencies run: poetry lock - uses: actions/setup-python@v4 with: - python-version: "3.9" + python-version: "3.11" cache: poetry - - name: Install Dependencies using Poetry - run: | - pip install connection-pool # because it is incompatible with poetry - poetry install - - name: Publish to PyPi env: PYPI_USERNAME: __token__