diff --git a/.github/workflows/python2-app.yml b/.github/workflows/python2-app.yml index 57c3cae..bfce20f 100644 --- a/.github/workflows/python2-app.yml +++ b/.github/workflows/python2-app.yml @@ -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 \ No newline at end of file + 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 + " diff --git a/.github/workflows/python3-app.yml b/.github/workflows/python3-app.yml index 020e4a9..0722aee 100644 --- a/.github/workflows/python3-app.yml +++ b/.github/workflows/python3-app.yml @@ -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: @@ -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 @@ -29,4 +29,4 @@ jobs: pip install -e . - name: Test with mamba run: | - mamba --enable-coverage \ No newline at end of file + mamba --enable-coverage diff --git a/requirements-dev.txt b/requirements-dev.txt index cfe475b..726d3a0 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,2 +1,3 @@ -mamba<0.11 +mamba==0.10; python_version < "3.11" +mamba==0.11.3; python_version >= "3.11" expects