Skip to content

Commit

Permalink
Merge pull request #172 from gisce/update_tests_ci
Browse files Browse the repository at this point in the history
Update test ci python setup
  • Loading branch information
polsala authored Mar 6, 2024
2 parents 1530197 + 2a70e47 commit b5088ae
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,25 @@ jobs:
# For example, pypy2 and pypy3
fail-fast: false
matrix:
python-version: ["2.7.18", "3.11.1"]
python-version: ["2.7", "3.11"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
if: matrix.python-version == '3.11'
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Python 2
if: matrix.python-version == '2.7'
run: |
sudo apt update
sudo apt install python2 python-pip
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 2
printf '1\n' | sudo update-alternatives --config python
cd /usr/bin
sudo ln -s /usr/bin/pip2 ./pip
- name: Install dependencies
run: |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
Expand Down

0 comments on commit b5088ae

Please sign in to comment.