-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from gisce/py3_compat_restore
Restore PY3 compat
- Loading branch information
Showing
5 changed files
with
72 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: Python Testing | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "2.7", "3.11" ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3 | ||
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: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements-dev.txt | ||
pip install -e . | ||
- name: Tests | ||
run: | | ||
mamba |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
mamba==0.9.3 | ||
mamba==0.9.3;python_version<="2.7.18" | ||
mamba;python_version>"2.7.18" | ||
expects | ||
mock | ||
mock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
install_requires=[ | ||
'html2text', | ||
'six', | ||
'unidecode' | ||
], | ||
license='MIT', | ||
author='GISCE-TI, S.L.', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters