Skip to content

Commit

Permalink
Updated github_action to use alt python-2.7 install method. (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjacovich authored Aug 7, 2023
1 parent 128d535 commit a543bf5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
31 changes: 27 additions & 4 deletions .github/workflows/python_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,36 @@ on: [pull_request]
jobs:
build:

runs-on: ubuntu-latest
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 2.7
- name: install python2
run: |
sudo apt-get update
sudo apt-get install python2.7 -y
sudo apt-get install python2.7-dev -y
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
venv_base_path="/tmp/python27/venv"
venv_dir="bin"
echo "Bootstrapping pip"
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
python get-pip.py
rm -f get-pip.py
echo "Installing virtualenv"
python -m pip install virtualenv
python -m virtualenv ${venv_base_path}
source ${venv_base_path}/${venv_dir}/activate
python -m pip --no-python-version-warning --disable-pip-version-check install --upgrade pip setuptools
echo "${venv_base_path}/${venv_dir}" >> $GITHUB_PATH
- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ADSimportpipeline

[![Build Status](https://travis-ci.org/adsabs/ADSimportpipeline.svg?branch=master)](https://travis-ci.org/adsabs/ADSimportpipeline)
[![GitHub Actions CI](https://github.com/adsabs/ADSImportPipeline/actions/workflows/python_actions.yml/badge.svg)](https://github.com/adsabs/ADSImportPipeline/actions/workflows/python_actions.yml)
[![Coverage Status](https://coveralls.io/repos/adsabs/ADSimportpipeline/badge.svg?branch=master)](https://coveralls.io/r/adsabs/ADSimportpipeline)

## Overview
Expand Down

0 comments on commit a543bf5

Please sign in to comment.