Skip to content

Commit

Permalink
chore(#39): install python version specified
Browse files Browse the repository at this point in the history
original yaml file was not installing specified version in action
matrix.
added action to install specified version for python.

bumping python 3.6.2 to 3.6.7 as following are the versions valid for
the new action used.
https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json

Use ubuntu-20.04 to install python 3.10 refer to issue
`https://github.com/actions/setup-python/issues/541`
  • Loading branch information
indiVar0508 committed Nov 18, 2022
1 parent 3570c74 commit c8f5978
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ jobs:
strategy:
matrix:
python-version:
- "3.6.2"
- "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: |
Expand All @@ -42,7 +46,7 @@ jobs:
strategy:
matrix:
python-version:
- "3.6.2"
- "3.6"
- "3.10"
services:
mysql:
Expand All @@ -57,9 +61,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: |
Expand All @@ -77,7 +85,7 @@ jobs:
strategy:
matrix:
python-version:
- "3.6.2"
- "3.6"
- "3.10"
services:
postgres:
Expand All @@ -92,9 +100,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: |
Expand Down

0 comments on commit c8f5978

Please sign in to comment.