Skip to content

Commit

Permalink
Testrun latest changes in CI (#4)
Browse files Browse the repository at this point in the history
* Move test dependencies into setup.py
* Delete unused `requirements.txt`
* Restrict testing in ubuntu-latest and windows-latest to pre-build python versions
* Restrict macos testing to version which comes with available wheels (mainly for scikit-image)
  • Loading branch information
erjel authored Nov 10, 2024
1 parent 8189b93 commit a2e38f4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 45 deletions.
39 changes: 9 additions & 30 deletions .github/workflows/test_pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,19 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
#os: [ubuntu-latest, macos-latest, windows-latest]
# macos > 13 has arm-based cpu and does not have pre-build
# wheel for scikit-image>=0.14.2,<0.17. Compiling from source
# not trivial.
os: [ubuntu-latest, macos-13, windows-latest]
# see supported versions at
# https://raw.githubusercontent.com/actions/python-versions/master/versions-manifest.json
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
# test only 2.7 and the latest 3.x on mac
python-version: [3.7, 3.8]
# test only the latest 3.x on mac
# test only the latest 3.x on windows
exclude:
- os: macos-latest
python-version: 3.5
- os: macos-latest
python-version: 3.6
- os: macos-latest
- os: macos-13
python-version: 3.7
- os: windows-latest
python-version: 2.7 # causes a Shapely install error
- os: windows-latest
python-version: 3.5
- os: windows-latest
python-version: 3.6
- os: windows-latest
python-version: 3.7
env:
Expand Down Expand Up @@ -103,27 +97,12 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
# ----------------
# Install dependencies
# ----------------
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Install test dependencies
run: |
pip install --upgrade -r test/requirements.txt
- name: Install further test tools
run: |
pip install coverage pytest-cov flake8
# ----------------
# Install library
# ----------------
- name: Install library
run: |
pip install .
pip install .[dev]
# ----------------
# Run checks and tests
Expand Down
15 changes: 0 additions & 15 deletions requirements.txt

This file was deleted.

3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
DEV_REQUIRES = [
"pytest-subtests",
"xdoctest >= 0.7.2",
"coverage",
"pytest-cov",
"flake8",
]


Expand Down

0 comments on commit a2e38f4

Please sign in to comment.