Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 8 additions & 18 deletions .github/workflows/python2-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 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: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
pip install -r requirements-dev.txt
pip install coveralls
pip install -e .
- uses: actions/checkout@v4
- name: Test with mamba
run: |
mamba --enable-coverage
docker run --rm -v "$PWD:/work" -w /work python:2.7 bash -lc "
python -m pip install --upgrade 'pip<21' 'setuptools<45' &&
pip install -r requirements-dev.txt &&
pip install coveralls &&
pip install -e . &&
mamba --enable-coverage
"
12 changes: 6 additions & 6 deletions .github/workflows/python3-app.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python 3.7
name: Python 3.11

on:
push:
Expand All @@ -15,11 +15,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.7"
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -29,4 +29,4 @@ jobs:
pip install -e .
- name: Test with mamba
run: |
mamba --enable-coverage
mamba --enable-coverage
3 changes: 2 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
mamba<0.11
mamba==0.10; python_version < "3.11"
mamba==0.11.3; python_version >= "3.11"
expects
Loading