From 35acede4743987e937c430a9de8573e3c0033148 Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Wed, 18 Sep 2024 22:05:09 +0530 Subject: [PATCH] install python explicitly --- .github/workflows/build.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bbdea61..4b1bb47 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,18 +13,29 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [39, 310, 311] + python-version: ["3.9", "3.10", "3.11"] steps: - name: Checkout uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Upgrade pip + run: | + python -m pip install --upgrade pip + - name: Build the manylinux2010 image run: docker compose build manylinux2010 - name: Build the package for Python ${{ matrix.python-version }} run: | docker compose run -e PYTHON_VERSION=${{ matrix.python-version }} manylinux2010 + $version=${{ matrix.python-version }} + docker compose run -e PYTHON_VERSION=$(echo "$version" | sed 's/\.//') manylinux2010 - name: Upload wheel artifact for Python ${{ matrix.python-version }} uses: actions/upload-artifact@v3