Skip to content

Commit

Permalink
fix: remove Python 2 jobs (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
caioariede authored Aug 17, 2023
1 parent 9e8adfe commit ed66abb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 56 deletions.
46 changes: 2 additions & 44 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
with:
python-version: ${{ matrix.python }}
- name: Install tox and any other packages
run: pip install tox
run: pip install 'tox<4.9'
- name: Run tox
run: tox -e ${{ matrix.toxenv }}

Expand All @@ -52,47 +52,7 @@ jobs:
- name: Install gdal
run: sudo apt-get install -y libgdal-dev libsqlite3-mod-spatialite
- name: Install tox and any other packages
run: pip install tox
- name: Run tox
run: tox -e ${{ matrix.toxenv }} -- --test-spatial

test-Python2:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["2.7"]
toxenv: ["py27"]

steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install tox and any other packages
run: pip install tox
- name: Run tox
run: tox -e ${{ matrix.toxenv }}

test-spatial-Python2:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["2.7"]
toxenv: ["py27"]

steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Update apt
run: sudo apt-get update
- name: Install gdal
run: sudo apt-get install -y libgdal-dev libsqlite3-mod-spatialite
- name: Install tox and any other packages
run: pip install tox
run: pip install 'tox<4.9'
- name: Run tox
run: tox -e ${{ matrix.toxenv }} -- --test-spatial

Expand All @@ -102,8 +62,6 @@ jobs:
- pre-commit
- test
- test-spatial
- test-Python2
- test-spatial-Python2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
12 changes: 0 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
[tox]
envlist =
py27
py39-dj{22,32}
py310-dj{22,32}
py311-dj{22,32}
platform = linux

[testenv:py27]
commands =
pip install --global-option=build_ext --global-option='-USQLITE_OMIT_LOAD_EXTENSION' pysqlite
pytest {posargs}
deps =
pytest
pytest-django
pyquery<1.4
six
Django<2

[testenv]
commands =
pytest {posargs}
Expand Down

0 comments on commit ed66abb

Please sign in to comment.