Skip to content

Commit

Permalink
Merge pull request #100 from ImperialCollegeLondon/fix/actions_2.7
Browse files Browse the repository at this point in the history
Fix running of the actions test workflow for Python 2.7
  • Loading branch information
jcohen02 committed Dec 20, 2023
2 parents aec7581 + 5557d45 commit c3aabe3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,19 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
if: matrix.python-version != '2.7'
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install and set up Python 2.7 (Custom install)
if: matrix.python-version == '2.7'
run: |
# Install Python and wget, ensure Python2.7 is available as "python"
sudo apt update
sudo apt install -y python2.7 python-is-python2 wget
# Get and install pip
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
sudo python get-pip.py
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit c3aabe3

Please sign in to comment.