From 59e70740d4a53b7639ae6c07d499a97cd363f66c Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Sun, 17 Mar 2024 10:49:00 -0400 Subject: [PATCH] build: use specific python version (#609) --- .github/workflows/release-script-tests.yml | 9 ++++++++- .github/workflows/release_create.yml | 7 ++++++- .github/workflows/release_prepare.yml | 9 +++++++-- .python-version | 1 + 4 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 .python-version diff --git a/.github/workflows/release-script-tests.yml b/.github/workflows/release-script-tests.yml index 3e3897689..5c8cd6f13 100644 --- a/.github/workflows/release-script-tests.yml +++ b/.github/workflows/release-script-tests.yml @@ -27,7 +27,14 @@ jobs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.6.0 + + - name: Prepare Python + uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 + with: + cache: 'pip' # caching pip dependencies + - name: Install dependencies - run: pip3 install -r requirements.txt + run: pip install -r requirements.txt + - name: Run tests run: pytest -v diff --git a/.github/workflows/release_create.yml b/.github/workflows/release_create.yml index 047d2a87a..35e096240 100644 --- a/.github/workflows/release_create.yml +++ b/.github/workflows/release_create.yml @@ -37,9 +37,14 @@ jobs: steps: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.6.0 + + - name: Prepare Python + uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 + with: + cache: 'pip' # caching pip dependencies - name: Install dependencies - run: pip3 install -r ./tools/release/requirements.txt + run: pip install -r ./tools/release/requirements.txt - name: Extract Tag from branch name run: | diff --git a/.github/workflows/release_prepare.yml b/.github/workflows/release_prepare.yml index e95e97eec..a38e60e2c 100644 --- a/.github/workflows/release_prepare.yml +++ b/.github/workflows/release_prepare.yml @@ -27,9 +27,14 @@ jobs: CXX: clang++-14 steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.6.0 - + + - name: Prepare Python + uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 + with: + cache: 'pip' # caching pip dependencies + - name: Install dependencies - run: pip3 install -r ./tools/release/requirements.txt + run: pip install -r ./tools/release/requirements.txt - name: Update source code versions run: ./tools/release/update_versions.py diff --git a/.python-version b/.python-version new file mode 100644 index 000000000..e4fba2183 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.12