From 6a48608025714410ed000b7734e42dff32507482 Mon Sep 17 00:00:00 2001 From: Indivar Mishra Date: Fri, 18 Nov 2022 08:55:00 +0530 Subject: [PATCH] chore(#39): install python version specified original yaml file was not installing specified version in action matrix. add action to install specified version for python. Use ubuntu-20.04 to install python 3.10 refer to issue `https://github.com/actions/setup-python/issues/541` --- .github/workflows/main.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f70b1e23..6fbba9be 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,9 +21,13 @@ jobs: python-version: - "3.6" - "3.10" - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 # refer: https://github.com/actions/setup-python/issues/541 steps: - uses: actions/checkout@v1 + - name: Install Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} - uses: psf/black@stable - name: Build run: pip3 install -e . -r requirements/test.txt @@ -52,9 +56,13 @@ jobs: --health-interval 5s --health-timeout 2s --health-retries 3 - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v1 + - name: Install Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} - uses: psf/black@stable - name: Build run: pip3 install -e . -r requirements/test.txt @@ -83,9 +91,13 @@ jobs: --health-interval 5s --health-timeout 2s --health-retries 3 - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v1 + - name: Install Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} - uses: psf/black@stable - name: Build run: pip3 install -e . -r requirements/test.txt