forked from fabtools/fabtools
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #2 from gisce/PY3_fixes
Py3 fixes
- Loading branch information
Showing
5 changed files
with
60 additions
and
12 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,48 @@ | ||
name: GISCExFabtools | ||
|
||
on: | ||
push: | ||
branches: [ git_clone_branch ] | ||
pull_request: | ||
branches: [ git_clone_branch ] | ||
|
||
jobs: | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["2.7", "3.10", "3.11", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
if: matrix.python-version != '2.7' | ||
uses: actions/setup-python@v5 | ||
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: Upgrade pip | ||
run: | | ||
pip install --upgrade pip setuptools wheel | ||
- name: Install package | ||
run: | | ||
pip install pytest | ||
pip install mock | ||
pip install -e . | ||
- name: Run test | ||
run: | | ||
python -m unittest discover -v |
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
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