From ea8f010fe56e1022ef3e64f3d18c974e6d639623 Mon Sep 17 00:00:00 2001 From: Sarah Wooders Date: Wed, 15 Nov 2023 10:11:59 -0800 Subject: [PATCH] Upgrade workflows to Python 3.11 (#441) * use python 3.11 * change format --- .github/workflows/poetry-publish-nightly.yml | 4 ++-- .github/workflows/poetry-publish.yml | 2 +- .github/workflows/tests.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/poetry-publish-nightly.yml b/.github/workflows/poetry-publish-nightly.yml index fdddbbe7d7..8cf6d176c1 100644 --- a/.github/workflows/poetry-publish-nightly.yml +++ b/.github/workflows/poetry-publish-nightly.yml @@ -32,7 +32,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.9 + python-version: 3.11 - name: Install poetry run: | curl -sSL https://install.python-poetry.org | python3 - @@ -42,7 +42,7 @@ jobs: # Extract the version number from pyproject.toml using awk CURRENT_VERSION=$(awk -F '"' '/version =/ { print $2 }' pyproject.toml | head -n 1) # Export the CURRENT_VERSION with the .dev and current date suffix - NIGHTLY_VERSION="${CURRENT_VERSION}.dev$(date +%Y%m%d)" + NIGHTLY_VERSION="${CURRENT_VERSION}.dev$(date +%Y%m%d%H%M%S)" # Overwrite pyproject.toml with nightly config sed -i "0,/version = \"${CURRENT_VERSION}\"/s//version = \"${NIGHTLY_VERSION}\"/" pyproject.toml sed -i 's/name = "pymemgpt"/name = "pymemgpt-nightly"/g' pyproject.toml diff --git a/.github/workflows/poetry-publish.yml b/.github/workflows/poetry-publish.yml index a1f1e64642..dba0ab2a75 100644 --- a/.github/workflows/poetry-publish.yml +++ b/.github/workflows/poetry-publish.yml @@ -14,7 +14,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.9 + python-version: 3.11 - name: Install poetry run: | curl -sSL https://install.python-poetry.org | python3 - diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 702fad5242..ce02993ecd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,7 +27,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.11" - name: Install poetry run: pip install poetry