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.
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`
  • Loading branch information
indiVar0508 authored and AbdealiLoKo committed Nov 24, 2022
1 parent 37e5ae3 commit 6a48608
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6a48608

Please sign in to comment.