Skip to content

Commit

Permalink
Update build-and-test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
arlind87 authored May 23, 2024
1 parent c9a07e5 commit 0a2ce8d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ on:
jobs:
test:
runs-on: ubuntu-20.04
container:
image: python:2.7.18-buster
strategy:
max-parallel: 4
matrix:
Expand All @@ -28,9 +26,18 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
if: matrix.python-version != '2.7'
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Set up Python ${{ matrix.python-version }}
if: matrix.python-version == '2.7'
run: sudo ln -sf /usr/bin/python2.7 /usr/bin/python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
pip install --upgrade pip
Expand Down

0 comments on commit 0a2ce8d

Please sign in to comment.