From 4973e6302928137267ea5f3b638e0162256a8235 Mon Sep 17 00:00:00 2001 From: erezrokah Date: Fri, 27 Oct 2023 14:16:41 +0200 Subject: [PATCH] chore: Pin Python version to 3.11 --- .github/workflows/lint.yml | 6 +++-- .github/workflows/publish.yml | 46 ++++++++++++++++----------------- .github/workflows/unittests.yml | 6 +++-- 3 files changed, 31 insertions(+), 27 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7ce2828..fc0dc00 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,8 +14,10 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.x" + python-version: "3.11" - name: Install dependencies - run: pip install -r requirements.txt + run: | + pip install --upgrade pip + pip install -r requirements.txt - name: Check formatting run: make fmt-check diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index aa35df8..5e6b6ae 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,28 +2,28 @@ name: publish on: push: tags: - - 'v*.*.*' + - "v*.*.*" jobs: - pypi-publish: - name: upload release to PyPI - runs-on: ubuntu-latest - permissions: - # IMPORTANT: this permission is mandatory for trusted publishing - id-token: write - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install build - - name: Build package - run: python -m build - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file + pypi-publish: + name: upload release to PyPI + runs-on: ubuntu-latest + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + - name: Install dependencies + run: | + pip install --upgrade pip + pip install -r requirements.txt + pip install build + - name: Build package + run: python -m build + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index eec37c9..7f26270 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -16,8 +16,10 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.x" + python-version: "3.11" - name: Install dependencies - run: pip install -r requirements.txt + run: | + pip install --upgrade pip + pip install -r requirements.txt - name: Run tests run: make test